Click or drag to resize

ImportSetManagerById Method

Retrieves a specific Import Set in a case using its unique identifier

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public ImportSet ById(
	int importSetId
)

Parameters

importSetId
Type: SystemInt32
The unique identifier of the import set

Return Value

Type: ImportSet
ImportSet
Examples
The following example demonstrates retrieving an import set using its id.
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");

        ImportSet importSet = edaCase.Imports.ImportSets.ById(3);
        Console.WriteLine("Id: {0},  Label: {1}", importSet.Id, importSet.Label);
    }
}
/*
This example produces the following results:

Id: 3,  Label: 2014-06-21-002
 */
See Also