Method WithTrendTemplate
- Namespace
- Skyline.AppInstaller
- Assembly
- Skyline.DataMiner.Core.AppPackageCreator.dll
WithTrendTemplate(string, bool)
Adds the specified trend template.
IAppPackageProtocolBuilder WithTrendTemplate(string trendTemplateFilePath, bool replaceExisting)
Parameters
trendTemplateFilePath
stringThe trend 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
trendTemplateFilePath
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.
- InvalidOperationException
A trend template with this name has already been added and
replaceExisting
isfalse
.