Click or drag to resize

ISourceManagerAll Method

Retrieves the list of Sources for a case

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
IEnumerable<ISource> All()

Return Value

Type: IEnumerableISource
A list of ISources
Examples
The following example demonstrates retrieving the a list of sources for a case.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Import;

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        foreach (ISource 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