| ExportManagerUpdate Method |
Updates the properties for an export
Namespace:
Law.EdaIntegration.Exports
Assembly:
Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax Exceptions Exception | Condition |
---|
EdaApiException | Thrown if an export with the provided id does not exist |
ArgumentException | Thrown if the export configuration parameters are invalid |
Examples
This example demonstrates updating the properties of an export.
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Exports;
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");
Export export = edaCase.Exports.ByName("Export-001");
Console.WriteLine("Name: {0}", export.Name);
Console.WriteLine("Next Number: {0}", export.Config.NumberingSeed);
Console.WriteLine("Use Alpha Numbering?: {0}", export.Config.Scope);
export.Config.AlphaNumericNumbering = true;
export.Config.NumberingSeed = "100a";
edaCase.Exports.Update(export);
export = edaCase.Exports.ByName("Export-001");
Console.WriteLine("Name: {0}", export.Name);
Console.WriteLine("Next Number: {0}", export.Config.NumberingSeed);
Console.WriteLine("Use Alpha Numbering?: {0}", export.Config.Scope);
}
}
See Also