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