Click or drag to resize

ImportSessionManagerByLabel Method

Retrieves a specific import session in a case using its label

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

Parameters

sessionLabel
Type: SystemString
The label of the import session

Return Value

Type: ImportSession
ImportSession
Examples
The following example demonstrates retrieving an import session using its label.
C#
using Law.EdaIntegration;

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

        ImportSession importSession = edaCase.Imports.ImportSessions.ByLabel("Local Data");
        Console.WriteLine("Id: {0},  Label: {1}", importSession.Id, importSession.Label);
    }
}
/*
This example produces the following results:

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