Click or drag to resize

CustodianManagerCreate Method

Creates a new custodian for a case

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public Custodian Create(
	string custodianName
)

Parameters

custodianName
Type: SystemString
The name of the new custodian

Return Value

Type: Custodian
The custodian object added to Early Data Analyzer
Exceptions
ExceptionCondition
EdaApiExceptionThrown if the custodian name is invalid
Examples
This example demonstrates how to create a new custodian 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");
        Custodian custodian = edaCase.Custodians.Create("A new custodian");
        Console.WriteLine("Id: {0},  Name: {1}", custodian.Id, custodian.Name);
    }
}
/*
This example produces the following results:

Id: 4,  Name: A new custodian
 */
See Also