Table of Contents

Method SavePreset

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

SavePreset(string, object[], bool)

Saves the specified preset. Replaces: sa.NotifyElement(userID, elementID, SPA_NE_PRESET_SAVE (1), 0, presetName, presetData, out result);

void SavePreset(string presetName, object[] presetData, bool isGlobalPreset = true)

Parameters

presetName string

The name of the preset to update or create.

presetData object[]

Object array as required by old SpectrumAnalyzerClass for SPA_NE_PRESET_SAVE = 1.

isGlobalPreset bool

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

Exceptions

ArgumentNullException

presetName is null.

ArgumentException

presetName is empty.