Click or drag to resize

ExcludedContentManagerCreate Method

Creates a new excluded content item for a case.

Namespace:  Law.EdaIntegration.NearDuplicate
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public ExcludedContentItem Create(
	string phrase
)

Parameters

phrase
Type: SystemString
The text or phrase of the excluded content item.

Return Value

Type: ExcludedContentItem
The excluded content item
Remarks
If a duplicate phrase is added, the existing item is returned without creating a new record.
Examples
The following example demonstrates how to create an excluded content item for a case.
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 an excluded content item
        string phrase = "This e-mail may contain information that is privileged or confidential.";
        ExcludedContentItem item = edaCase.NearDuplicates.Properties.ExcludedContent.Create(phrase);
        Console.WriteLine("Id: {0}", item.Id);
        Console.WriteLine("Phrase: {0}", item.Phrase);
    }
}
/*
This example produces the following results:

Id: 1
Phrase: This e-mail may contain information that is privileged or confidential.
 */
See Also