Click or drag to resize

IExportErrorManagerById Method

Retrieves a specific error for an export.

Namespace:  EdaIntegrationContract.Exports
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
IExportError ById(
	int exportErrorId
)

Parameters

exportErrorId
Type: SystemInt32
The unique identifier of the export error to retrieve.

Return Value

Type: IExportError
The requested IExportError
Exceptions
ExceptionCondition
EdaApiExceptionThrown if the error does not exist
Examples
The following example demonstrates retrieving a specific error for an export.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Exports;

class Sample
{
    static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();

        // Get the export
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        IExport export = edaCase.Exports.ByName("Export-001"); 

        IExportError error = export.Errors.ById(4);
        Console.WriteLine("Id: {0}", error.Id);
        Console.WriteLine("Message: {0}", error.Message);
        Console.WriteLine("Doc Id: {0}", error.DocumentId);
    }
}
/*
This example produces the following results:

Id: 4
Message: Source file not found. \\NetworkDrive\Folder1\Folder2\Documents\samples.pst
Doc Id: 25   
 */
See Also