Click or drag to resize

ImportSetManagerByLabel Method

Retrieves a specific import set in a case using its label

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public ImportSet ByLabel(
	string importSetLabel
)

Parameters

importSetLabel
Type: SystemString
The label of the import set

Return Value

Type: ImportSet
ImportSet
Examples
The following example demonstrates retrieving an import set using its label.
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.ByLabel("Local Data");
        Console.WriteLine("Id: {0},  Label: {1}", importSet.Id, importSet.Label);
    }
}
/*
This example produces the following results:

Id: 4,  Label: Local Data
 */
See Also