ExportErrorManagerAll Method |
Namespace: Law.EdaIntegration.Exports
public IEnumerable<ExportError> All( ExceptionFilter filter = null )
using Law.EdaIntegration; 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"); foreach (ExportError error in export.Errors.All()) { Console.WriteLine("Id: {0}", error.Id); Console.WriteLine("Message: {0}", error.Message); Console.WriteLine("Doc Id: {0}", error.DocumentId); Console.WriteLine(""); } } } /* This example produces the following results: Id: 3 Message: Source file not found. \\NetworkDrive\Folder1\Folder2\Documents\samples.pst Doc Id: 24 Id: 4 Message: Source file not found. \\NetworkDrive\Folder1\Folder2\Documents\samples.pst Doc Id: 25 */