Click or drag to resize

CustodianManagerAll Method

Retrieves the list of Custodians for a case

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public IEnumerable<Custodian> All()

Return Value

Type: IEnumerableCustodian
A list of Custodian
Examples
The following example demonstrates retrieving the a list of custodians for a case.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Import;

class Sample
{
    public static void Main()
    {
        string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
        EdaIntegration edaIntegration = new EdaIntegration();
        edaIntegration.InitializeEnvironment(connectionString);

        Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        foreach (Custodian 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