| ExportManagerByName Method |
Retrieves an export using its name
Namespace:
Law.EdaIntegration.Exports
Assembly:
Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax public Export ByName(
string exportName
)
Parameters
- exportName
- Type: SystemString
The name of the export to retrieve
Return Value
Type:
ExportThe export with the supplied unique identifier
Exceptions Exception | Condition |
---|
EdaApiException | Thrown if an export cannot be found with the specified name |
Examples
The following example demonstrates retrieving an export using its name.
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");
Export export = edaCase.Exports.ByName("Export-001");
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);
}
}
See Also