Click or drag to resize

ExportManagerAll Method

Retrieves the list of Exports for a case.

Namespace:  Law.EdaIntegration.Exports
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public IEnumerable<Export> All()

Return Value

Type: IEnumerableExport
A list of Exports. If no exports exist for a case then an empty list is returned.
Examples
The following example demonstrates retrieving the a list of exports for a case.
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");
        foreach (Export export in edaCase.Exports.All())
        {
            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);
            Console.WriteLine("");
        }
    }
}
/*
This example produces the following results:

Name: Export-001
Type: Native
Scope: Filtered
Last Run: 7/24/2014 6:30:59 PM
Total Documents: 21049
Error Count: 2

Name: Export-002
Type: Native
Scope: Tagged
Last Run: 7/24/2014 10:08:14 PM
Total Documents: 1656
Error Count: 0*/
See Also