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.
IAppPackageBuilder WithVisioForProtocol(string protocolName, string visioFilePath, string version)
Parameters
protocolName
stringThe name of the protocol.
visioFilePath
stringThe Visio file path.
version
stringThe Visio version.
Returns
- IAppPackageBuilder
A reference to this instance after this operation has completed.
Exceptions
- ArgumentNullException
protocolName
,visioFilePath
orversion
is null.- ArgumentException
protocolName
,visioFilePath
orversion
is 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.
IAppPackageBuilder WithVisioForProtocol(string protocolName, string visioFilePath, string version, bool setAsActive, bool setAsDefault = false)
Parameters
protocolName
stringThe name of the protocol.
visioFilePath
stringThe Visio file path.
version
stringThe Visio version.
setAsActive
booltrue
will set this visio as the active one; otherwise,false
.setAsDefault
booltrue
to set this visio as the Protocol Default by adding skyline_; otherwise,false
.
Returns
- IAppPackageBuilder
A reference to the builder after this operation has completed.
Exceptions
- ArgumentNullException
protocolName
,visioFilePath
orversion
is null.- ArgumentException
protocolName
,visioFilePath
orversion
is 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.