Click or drag to resize

ExcludedContentManagerAll Method

Retrieves the list of all ExcludedContentItems for a case.

Namespace:  Law.EdaIntegration.NearDuplicate
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public IEnumerable<ExcludedContentItem> All()

Return Value

Type: IEnumerableExcludedContentItem
A list of ExcludedContentItems.
Examples
The following example demonstrates retrieving a list of excluded content items 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");
        foreach (ExcludedContentItem excludedItem in edaCase.NearDuplicates.Properties.ExcludedContent.All())
        {
            Console.WriteLine("Id: "   + excludedItem.Id);
            Console.WriteLine("Phrase: " + excludedItem.Phrase);
            Console.WriteLine("DateModified: " + excludedItem.DateModified);
            Console.WriteLine();
        }
    }
}
/*
This example produces the following results:

Id: 1
Phrase: Some text A
DateModified: 8/26/2014 9:40:35 AM

Id: 2
Phrase: Some text B
DateModified: 8/26/2014 9:40:35 AM
 */
See Also