Click or drag to resize

SourceManagerDelete Method

Deletes one or more sources from Early Data Analyzer
Caution note Caution
When deleting a source, the documents and metadata associated with that source will also be deleted.

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public void Delete(
	IEnumerable<int> sourceIdsToDelete
)

Parameters

sourceIdsToDelete
Type: System.Collections.GenericIEnumerableInt32
The list of unique identifiers of the sources to be deleted
Examples
The following example demonstrates deleting a list of sources.
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");

        List<int> sourceIdsToDelete = new List<int>
        {
            15,
            21,
        };
        edaCase.Sources.Delete(sourceIdsToDelete);
    }
}
See Also