Click or drag to resize

SourceManagerByImportSet Method

Retrieves the list of Sources for an ImportSet

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public IEnumerable<Source> ByImportSet(
	int importSetId,
	int custodianId = 0
)

Parameters

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

Return Value

Type: IEnumerableSource
A list of Sources
Examples
The following example demonstrates retrieving the sources for an Import Set
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 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