Click or drag to resize

ICustodianManagerByName Method

Retrieves a Custodian by its name

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
ICustodian ByName(
	string custodianName
)

Parameters

custodianName
Type: SystemString
The name of the custodian to find

Return Value

Type: ICustodian
A list of ICustodians
Exceptions
ExceptionCondition
EdaApiExceptionThrown if a custodian cannot be found with the specified name
Examples
The following example demonstrates retrieving a custodian using its name.
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.ByName("Custodian 2");
        Console.WriteLine("Id: {0},  Name: {1}", custodian.Id, custodian.Name);
    }
}
/*
This example produces the following results:

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