Click or drag to resize

ICustodianManagerCreate Method

Creates a new custodian for a case

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

Parameters

custodianName
Type: SystemString
The name of the new custodian

Return Value

Type: ICustodian
The custodian created
Exceptions
ExceptionCondition
EdaApiExceptionThrown if the custodian name is invalid
Examples
This example demonstrates how to create a new custodian 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");
        ICustodian 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