Click or drag to resize

NearDuplicatePropertiesNearDupeComparisonThreshold Property

Gets or sets the Near-Duplicate Comparison Threshold for the case.

Namespace:  Law.EdaIntegration.NearDuplicate
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public int NearDupeComparisonThreshold { get; set; }

Property Value

Type: Int32
Exceptions
ExceptionCondition
EdaApiExceptionThrown if the value is not between 60 and 99.
Remarks
Determines the minimum percentage of similarity to be considered when comparing the similarity between case files during near-duplicate analysis. The valid range for this setting is from 60 to 99.
Examples
This example demonstrates how to set and retrieve the NearDupeComparisonThreshold.
C#
using Law.EdaIntegration;

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");

        // Set the NearDupeComparisonThreshold value
        edaCase.NearDuplicates.Properties.NearDupeComparisonThreshold = 85;

        // Save the changes to the case
        edaCase.NearDuplicates.UpdateProperties();

        // Get the value
        Console.WriteLine("NearDupeComparisonThreshold: {0}", edaCase.NearDuplicates.Properties.NearDupeComparisonThreshold);
    }
}
/*
This example produces the following results:

NearDupeComparisonThreshold: 85
 */
See Also