Click or drag to resize

IExportManagerCreate Method

Creates a new export for a case and set it as the active export

Namespace:  EdaIntegrationContract.Exports
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax
C#
IExport Create(
	string exportName,
	ExportType exportType,
	string baseDirectory = null
)

Parameters

exportName
Type: SystemString
The name of the new export
exportType
Type: EdaIntegrationContract.ExportsExportType
The type of the new export
baseDirectory (Optional)
Type: SystemString
Optional base directory to use for staging LAW Direct export files

Return Value

Type: IExport
The export object added to the case
Examples
This example demonstrates how to create a new export for a case.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Exports;

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        IExport export = edaCase.Exports.Create("Export-001");

        Console.WriteLine("Id: {0}", export.Id);
        Console.WriteLine("Name: {0}", export.Name);
        Console.WriteLine("Type: {0}", export.Type);
        Console.WriteLine("Scope: {0}", export.Config.Scope);
        Console.WriteLine("Last Run: {0}", export.LastRun);
        Console.WriteLine("Total Documents: {0}", export.TotalDocuments);
        Console.WriteLine("Error Count: {0}", export.NumErrors);
    }
}
/*
This example produces the following results:

Id: 3
Name: Export-001
Type: Native
Scope: Filtered
Last Run: 
Total Documents: 0
Error Count: 0
 */
See Also