Click or drag to resize

SourceManagerAll Method

Retrieves the list of Sources for a case

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public IEnumerable<Source> All()

Return Value

Type: IEnumerableSource
A list of Sources
Examples
The following example demonstrates retrieving the a list of sources for a case.
C#
using Law.EdaIntegration;

class Sample
{
    public static void Main()
    {
        string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
        EdaIntegration edaIntegration = new EdaIntegration();
        edaIntegration.InitializeEnvironment(connectionString);

        Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        foreach (Source s in edaCase.Sources.All())
        {
            Console.WriteLine("Id: " + s.Id);
            Console.WriteLine("Name: " + s.Name);
            Console.WriteLine("Type: " + s.Type);
            Console.WriteLine("CustodianId: " + s.CustodianId);
            Console.WriteLine("Description: " + s.Description);
            Console.WriteLine("");
        }
    }
}
/*
This example produces the following results:

  Id: 15
  Name: Documents
  Type: Folder
  CustodianId: 4
  Description: \\NetworkDrive\Folder1\Folder2\Documents

  Id: 16
  Name: Folder 1
  Type: Files
  CustodianId: 4
  Description: \\NetworkDrive\Folder1 (3 files)

 */
See Also