Click or drag to resize

ICustodianManagerByImportSet Method

Retrieves the list of Custodians that had input in the supplied Import Set

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
IEnumerable<ICustodian> ByImportSet(
	int importSetId
)

Parameters

importSetId
Type: SystemInt32
The identifier of the import set to find

Return Value

Type: IEnumerableICustodian
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");
        foreach (ICustodian custodian in edaCase.Custodians.ByImportSet(123))
        {
            Console.WriteLine("Id: "   + custodian.Id);
            Console.WriteLine("Name: " + custodian.Name);
        }
    }
}
/*
This example produces the following results:

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