Table of Contents

Method GetPreset

Namespace
Skyline.DataMiner.Core.DataMinerSystem.Common
Assembly
Skyline.DataMiner.Core.DataMinerSystem.Common.dll

GetPreset(string, bool)

Retrieves the preset with the specified name. Replaces: sa.NotifyElement(userID, elementID, SPA_NE_PRESET_LOAD (0), 0, presetName, presetLoadOptions, out result);

object GetPreset(string presetName, bool isGlobalPreset = true)

Parameters

presetName string

The name of the preset to get.

isGlobalPreset bool

Allows to define if the preset should be shared to all users or private for scripting.

Returns

object

The preset data.

Exceptions

ArgumentNullException

presetName is null.

ArgumentException

presetName is empty.