| ImportSessionManagerCreate Method |
Creates a new import session
Namespace:
Law.EdaIntegration.Import
Assembly:
Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax public ImportSession Create(
string sessionLabel = ""
)
Parameters
- sessionLabel (Optional)
- Type: SystemString
An optional value to use as the session label in place of the auto-generated
value.
Return Value
Type:
ImportSessionThe newly generated
ImportSessionExceptions Exception | Condition |
---|
EdaApiException | thrown if the session label already exists |
Examples
The following example demonstrates creating a new import session
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 session = edaCase.Imports.ImportSessions.Create();
Console.WriteLine("Id: {0}, Label: {1}", session.Id, session.Label);
}
}
See Also