Table of Contents

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 string

The trend template file path.

replaceExisting bool

true 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 is false.