| IExportManagerUpdate Method |
Updates the properties for an export
Namespace:
EdaIntegrationContract.Exports
Assembly:
EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
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 EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Exports;
class Sample
{
public static void Main()
{
var edaIntegration = new EdaIntegration().ConnectToExplore();
ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
IExport 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