| CustodianManagerByName Method |
Retrieves a Custodian by its name
Namespace:
Law.EdaIntegration.Import
Assembly:
Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax public Custodian ByName(
string custodianName
)
Parameters
- custodianName
- Type: SystemString
The name of the custodian to find
Return Value
Type:
CustodianA 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");
Custodian custodian = edaCase.Custodians.ByName("Custodian 2");
Console.WriteLine("Id: {0}, Name: {1}", custodian.Id, custodian.Name);
}
}
See Also