Click or drag to resize

IImportSetManagerByLabel Method

Retrieves a specific import set in a case using its label

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
IImportSet ByLabel(
	string importSetLabel
)

Parameters

importSetLabel
Type: SystemString
The label of the import set

Return Value

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

        IImportSet 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