Table of Contents

Method WithInformationTemplate

Namespace
Skyline.AppInstaller
Assembly
Skyline.DataMiner.Core.AppPackageCreator.dll

WithInformationTemplate(string, bool)

Adds the specified information template.

IAppPackageProtocolBuilder WithInformationTemplate(string informationTemplateFilePath, bool replaceExisting)

Parameters

informationTemplateFilePath string

The information 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

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.