Table of Contents

Method WithAlarmTemplate

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

WithAlarmTemplate(string, bool)

Adds the specified alarm template.

IAppPackageProtocolBuilder WithAlarmTemplate(string alarmTemplateFilePath, bool replaceExisting)

Parameters

alarmTemplateFilePath string

Path of the alarm template to add;

replaceExisting bool

true to replace the existing alarm template; otherwise, false.

Returns

IAppPackageProtocolBuilder

A reference to this instance after this operation has completed.

Exceptions

ArgumentNullException

alarmTemplateFilePath is null.

ArgumentException

alarmTemplateFilePath is empty or white space. -or- The specified file is not an XML file (.xml). -or- The specified file does not exist.

InvalidOperationException

An alarm with this file name has already been added and replaceExisting is set to false.