Click or drag to resize

IExportDocumentManagerAll Method

Retrieves all documents for an export

Namespace:  EdaIntegrationContract.Exports
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
IEnumerable<IExportDocument> All(
	bool includeReceivedDocs = false
)

Parameters

includeReceivedDocs (Optional)
Type: SystemBoolean

Return Value

Type: IEnumerableIExportDocument
A list of IExportDocuments that have been exported
Examples
The following example demonstrates retrieving the list of documents for an export and printing each name to the system console.
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"); 

        foreach (IExportDocument doc in export.Documents.All())
        {
            Console.WriteLine("{0}:  {1}", doc.ExportNumber, doc.FileName);
        }
    }
}
/*
This example produces the following results:

00001160:  Unprofitable actions.msg
00001155:  Four Attributes.msg
00002241:  Technology outlook.pdf
00001163:  Load Forecasting Technology.msg
00002240:  Book1.xlsx
00001159:  Monthly data.msg
00001170:  Viewpoint from above.msg
00001168:  Scope.docx
00001166:  Key Stats YTD 2011.xlsx
00001167:  Forecast 2012.pptx
 */
See Also