Click or drag to resize

CustodianManagerByImportSet Method

Retrieves the list of Custodians that had input in the supplied Import Set

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public IEnumerable<Custodian> ByImportSet(
	int importSetId
)

Parameters

importSetId
Type: SystemInt32
The identifier of the import set to find

Return Value

Type: IEnumerableCustodian
A list of Custodians
Exceptions
ExceptionCondition
EdaApiExceptionThrown if a custodian cannot be found with the specified name
Examples
The following example demonstrates retrieving a custodian using its name.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Import;

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 (Custodian custodian in edaCase.Custodians.ByImportSet(123))
        {
            Console.WriteLine("Id: "   + custodian.Id);
            Console.WriteLine("Name: " + custodian.Name);
        }
    }
}
/*
This example produces the following results:

Id: 1
Name: Custodian 1
Id: 3
Name: Custodian 3
 */
See Also