Click or drag to resize

IImportSetManagerById Method

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

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax
C#
IImportSet ById(
	int importSetId
)

Parameters

importSetId
Type: SystemInt32
The unique identifier of the import set

Return Value

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