| CustodianManagerCreate Method |
Creates a new custodian for a case
Namespace:
Law.EdaIntegration.Import
Assembly:
Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax public Custodian Create(
string custodianName
)
Parameters
- custodianName
- Type: SystemString
The name of the new custodian
Return Value
Type:
CustodianThe custodian object added to Early Data Analyzer
Exceptions Examples
This example demonstrates how to create a new custodian for a case.
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);
}
}
See Also