Click or drag to resize

ImportSessionManagerById Method

Retrieves a specific import session in a case using its unique identifier

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

Parameters

sessionId
Type: SystemInt32
The unique identifier of the import session

Return Value

Type: ImportSession
ImportSession
Examples
The following example demonstrates retrieving an import session using its id.
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.ById(3);
        Console.WriteLine("Id: {0},  Label: {1}", importSession.Id, importSession.Label);
    }
}
/*
This example produces the following results:

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