Click or drag to resize

ISourceManagerByImportSet Method

Retrieves the list of Sources for an ImportSet

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
IEnumerable<ISource> ByImportSet(
	int importSetId,
	int custodianId = 0
)

Parameters

importSetId
Type: SystemInt32
The unique identifier of the Import Set
custodianId (Optional)
Type: SystemInt32

Return Value

Type: IEnumerableISource
A list of ISources
Examples
The following example demonstrates retrieving the sources for an Import Set
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 source in edaCase.Sources.ByImportSet(3))
        {
            Console.WriteLine("Id: " + source.Id);
            Console.WriteLine("Name: " + source.Name);
            Console.WriteLine("Type: " + source.Type);
            Console.WriteLine("CustodianId: " + source.CustodianId);
            Console.WriteLine("Description: " + source.Description);
        }
    }
}
/*
This example produces the following results:

Id: 15
Name: Petes Data
Type: Folder
CustodianId: 4

Id: 16
Name: Bobs Data
Type: Folder
CustodianId: 5
 */
See Also