Click or drag to resize

ICustodianManagerAll Method

Retrieves the list of Custodians for a case

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

Return Value

Type: IEnumerableICustodian
A list of ICustodian
Examples
The following example demonstrates retrieving the a list of custodians for a case.
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.All())
        {
            Console.WriteLine("Id: "   + custodian.Id);
            Console.WriteLine("Name: " + custodian.Name);
        }
    }
 }
/*
This example produces the following results:

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