Click or drag to resize

ImportSetManagerAll Method

Retrieves the list of all the Import Sets in a case

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public IEnumerable<ImportSet> All()

Return Value

Type: IEnumerableImportSet
A list of ImportSet
Examples
The following example demonstrates retrieving the a list of Import Sets for a case.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Import;

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");

        foreach (ImportSet 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