| 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.2
Syntax public IEnumerable<Custodian> ByImportSet(
int importSetId
)
Parameters
- importSetId
- Type: SystemInt32
The identifier of the import set to find
Return Value
Type:
IEnumerableCustodianA list of
Custodians
Exceptions Exception | Condition |
---|
EdaApiException | Thrown if a custodian cannot be found with the specified name |
Examples
The following example demonstrates retrieving a custodian using its name.
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);
}
}
}
See Also