Click or drag to resize

ExcludedContentManagerUpdate Method

Updates Early Data Analyzer with any changed values for the excluded content item.

Namespace:  Law.EdaIntegration.NearDuplicate
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public void Update(
	ExcludedContentItem excludedContentItem
)

Parameters

excludedContentItem
Type: Law.EdaIntegration.NearDuplicateExcludedContentItem
The excluded content item containing the updated data to save.
Exceptions
ExceptionCondition
EdaApiExceptionThrown if an excluded content item cannot be found with the a matching Id.
Examples
This example demonstrates changing an excluded content item.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.NearDuplicate;

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");

        // Create a new ExcludedContentItem
        string phrase = "This e-mail may contain information that is privileged or confidential.";
        ExcludedContentItem item = edaCase.NearDuplicates.Properties.ExcludedContent.Create(phrase);
        Console.WriteLine("Before");
        Console.WriteLine("({0}): {1}", item.Id, item.Phrase);

        // Change the phrase and save it back
        item.Phrase = "This e-mail contains information that is privileged or confidential.";
        edaCase.NearDuplicates.Properties.ExcludedContent.Update(item);
        Console.WriteLine("After");
        Console.WriteLine("({0}): {1}", item.Id, item.Phrase);
    }
}
/*
This example produces the following results:

Before
(2): This e-mail may contain information that is privileged or confidential.        
After
(2): This e-mail contains information that is privileged or confidential. 
 */
See Also