Method WithVisioForProtocol
- Namespace
- Skyline.AppInstaller
- Assembly
- Skyline.DataMiner.Core.AppPackageCreator.dll
WithVisioForProtocol(string, string, string)
Adds the specified protocol Visio file to the application package.
public IAppPackageBuilder WithVisioForProtocol(string protocolName, string visioFilePath, string version)
Parameters
protocolNamestringThe name of the protocol.
visioFilePathstringThe Visio file path.
versionstringThe Visio version.
Returns
- IAppPackageBuilder
A reference to this instance after this operation has completed.
Exceptions
- ArgumentNullException
protocolName,visioFilePathorversionis null.- ArgumentException
protocolName,visioFilePathorversionis empty or white space. -or- The specified file is not a Visio (.vsdx) file. -or- The specified file does not exist.- InvalidOperationException
A Visio with this name has already been added for the specified protocol.
WithVisioForProtocol(string, string, string, bool, bool)
Adds the specified Visio file for the specified protocol to the application package.
public IAppPackageBuilder WithVisioForProtocol(string protocolName, string visioFilePath, string version, bool setAsActive, bool setAsDefault = false)
Parameters
protocolNamestringThe name of the protocol.
visioFilePathstringThe Visio file path.
versionstringThe Visio version.
setAsActivebooltruewill set this visio as the active one; otherwise,false.setAsDefaultbooltrueto set this visio as the Protocol Default by adding skyline_; otherwise,false.
Returns
Exceptions
- ArgumentNullException
protocolName,visioFilePathorversionis null.- ArgumentException
protocolName,visioFilePathorversionis empty or white space. -or- The specified file is not a Visio (.vsdx) file. -or- The specified file does not exist.- InvalidOperationException
A Visio with this name has already been added for the specified protocol.