Click or drag to resize

ExportManagerDelete Method

Delete an export.

Namespace:  Law.EdaIntegration.Exports
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public void Delete(
	int exportId
)

Parameters

exportId
Type: SystemInt32
The unique identifier of the export to delete
Exceptions
ExceptionCondition
EdaApiExceptionThrown if an export with the provided id does not exist
Examples
The following example demonstrates how to delete an export
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Exports;

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

        // Select the export to delete
        Export export = edaCase.Exports.ByName("Export-001");

        // Process the delete
        edaCase.Exports.Delete(export.Id);
    }
}
See Also