Method WithInformationTemplate
- Namespace
- Skyline.AppInstaller
- Assembly
- Skyline.DataMiner.Core.AppPackageCreator.dll
WithInformationTemplate(string, bool)
Adds the specified information template.
public IAppPackageProtocolBuilder WithInformationTemplate(string informationTemplateFilePath, bool replaceExisting)
Parameters
informationTemplateFilePath
stringThe information template file path.
replaceExisting
booltrue
to overwrite the template if it already exists;false
to preserve the existing file.
Returns
- IAppPackageProtocolBuilder
A reference to this instance after the operation has completed.
Exceptions
- ArgumentNullException
informationTemplateFilePath
is null.- ArgumentException
The specified path is empty. -or- The specified file is not an XML (.xml) file. -or- The specified file does not exist. -or- The name of an information template does not start with 'Information_'.
- InvalidOperationException
An information template with this name has already been added.