Click or drag to resize

IExcludedContentManagerUpdate Method

Updates the system with any changed values for the excluded content item.

Namespace:  EdaIntegrationContract.NearDuplicate
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax
C#
void Update(
	IExcludedContentItem excludedContentItem
)

Parameters

excludedContentItem
Type: EdaIntegrationContract.NearDuplicateIExcludedContentItem
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 EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.NearDuplicate;

class Sample
{
    static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");

        // Create a new ExcludedContentItem
        string phrase = "This e-mail may contain information that is privileged or confidential.";
        IExcludedContentItem 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