Click or drag to resize

ExcludedContentManagerById Method

Retrieves an excluded content item by its unique identifier.

Namespace:  Law.EdaIntegration.NearDuplicate
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public ExcludedContentItem ById(
	int id
)

Parameters

id
Type: SystemInt32
The unique identifier of the excluded content item to find.

Return Value

Type: ExcludedContentItem
The excluded content item with the supplied unique identifier.
Exceptions
ExceptionCondition
EdaApiExceptionThrown if an excluded content item cannot be found with the specified Id.
Examples
The following example demonstrates retrieving an excluded content item using its id.
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);

        // Retrieve the excluded content item and display it
        ExcludedContentItem itemById = edaCase.NearDuplicates.Properties.ExcludedContent.ById(item.Id);
        Console.WriteLine("Id: {0}", itemById.Id);
        Console.WriteLine("Phrase: {0}", itemById.Phrase);
    }
}       
/*
This example produces the following results:

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