| ICustodianManagerById Method |
Retrieves a Custodian by its unique identifier
Namespace:
EdaIntegrationContract.Import
Assembly:
EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax ICustodian ById(
int id
)
Parameters
- id
- Type: SystemInt32
The unique identifier of the custodian to find
Return Value
Type:
ICustodianThe custodian with the supplied unique identifier
Exceptions Exception | Condition |
---|
EdaApiException | Thrown if a custodian cannot be found with the specified Id |
Examples
The following example demonstrates retrieving a custodian using its id.
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.ById(3);
Console.WriteLine("Id: {0}, Name: {1}", custodian.Id, custodian.Name);
}
}
See Also