| ICustodianManagerUpdate Method |
Updates the system with any changed values for the custodian (also see Remarks below)
Namespace:
EdaIntegrationContract.Import
Assembly:
EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax Exceptions Remarks
If any documents belonging to the custodian have already been indexed, and the custodian's
name is changed, then the case will automatically be queued to re-index so that the index
can be refreshed with the new custodian name.
Examples
This example demonstrates updating the name of an existing custodian.
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.ByName("Custodian 3");
Console.WriteLine("({0}) {1}", custodian.Id, custodian.Name);
custodian.Name = "Third custodian";
edaCase.Custodians.Update(custodian);
Console.WriteLine("({0}) {1}", custodian.Id, custodian.Name);
try
{
ICustodian prevCustodian = edaCase.Custodians.ByName("Custodian 3");
}
catch (EdaApiException ex)
{
Console.WriteLine("Exception: {0}", ex.Message);
}
}
}
See Also