|  | IExportManagerById Method  | 
 
                Retrieves an export using its unique identifier.
            
 
    Namespace: 
   EdaIntegrationContract.Exports
    Assembly:
   EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
 Syntax
SyntaxIExport ById(
	int exportId
)
Parameters
- exportId
- Type: SystemInt32
 The unique identifier of the export to retrieve.
Return Value
Type: 
IExportThe export with the supplied unique identifier.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| EdaApiException | Thrown if an export cannot be found with the specified Id. | 
 Examples
Examples
                The following example demonstrates retrieving an export using its id.
                
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.ById(3);
        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
See Also