Click or drag to resize

ICustodianManagerById Method

Retrieves a Custodian by its unique identifier

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
ICustodian ById(
	int id
)

Parameters

id
Type: SystemInt32
The unique identifier of the custodian to find

Return Value

Type: ICustodian
The custodian with the supplied unique identifier
Exceptions
ExceptionCondition
EdaApiExceptionThrown if a custodian cannot be found with the specified Id
Examples
The following example demonstrates retrieving a custodian using its id.
C#
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);
    }
}
/*
This example produces the following results:

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