| ExcludedContentManagerById Method |
Retrieves an excluded content item by its unique identifier.
Namespace:
Law.EdaIntegration.NearDuplicate
Assembly:
Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax public ExcludedContentItem ById(
int id
)
Parameters
- id
- Type: SystemInt32
The unique identifier of the excluded content item to find.
Return Value
Type:
ExcludedContentItemThe excluded content item with the supplied unique identifier.
Exceptions Exception | Condition |
---|
EdaApiException | Thrown 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.
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");
string phrase = "This e-mail may contain information that is privileged or confidential.";
ExcludedContentItem item = edaCase.NearDuplicates.Properties.ExcludedContent.Create(phrase);
ExcludedContentItem itemById = edaCase.NearDuplicates.Properties.ExcludedContent.ById(item.Id);
Console.WriteLine("Id: {0}", itemById.Id);
Console.WriteLine("Phrase: {0}", itemById.Phrase);
}
}
See Also