Click or drag to resize

IImportSetManagerAll Method

Retrieves the list of all the Import Sets in a case

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
IEnumerable<IImportSet> All()

Return Value

Type: IEnumerableIImportSet
A list of IImportSet
Examples
The following example demonstrates retrieving the a list of Import Sets for a case.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Import;

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");

        foreach (IImportSet importSet in edaCase.Imports.ImportSets.All())
        {
            Console.WriteLine("Label:   {0}", importSet.Label);
            Console.WriteLine("Created: {0}", importSet.Created);
            Console.WriteLine();
        }
    }
}
/*
This example produces the following results:

Label:   2014-06-19-001
Created: 06/19/2004 9:10:22 AM

Label:   2014-06-21-001 
Created: 06/21/2004 10:13:12 AM

Label:   2014-06-21-002 
Created: 06/21/2004 6:23:45 PM

Label:   Local Data 
Created: 06/21/2004 6:24:19 PM

 */
See Also