Table of Contents

Class ElementStorage

Namespace
Skyline.DataMiner.Scripting
Assembly
QActionHelperBaseClasses.dll

This class can be used to store data for an element that will remain accessible as long as the SLScripting process remains active.

public class ElementStorage
Inheritance
ElementStorage
Extension Methods

Remarks

  • The ElementStorage class has a field of type Dictionary<int, object>, where the element ID is used as the key in this dictionary. The methods in the ElementStorage class that define a parameter of type SLProtocol use this protocol instance to retrieve the element ID.
note

  • The data remains stored as long as SLScripting is running.
  • From DataMiner version 7.5.6.2 onwards, instance QAction entry point methods are supported, allowing you to use instance fields. This makes using the ElementStorage class obsolete. This class should therefore no longer be used: use instance entry points accessing QAction instance field instead of the ElementStorage class.

Constructors

ElementStorage(SLProtocol, bool)

Initializes a new instance of the ElementStorage class.

Properties

Buffered

Indicates whether data is buffered.

Data

Gets or sets the raw saved data.

this[string]

Gets or sets the object at the specified key.

Map

Gets or sets the saved data as a dictionary.

MapLoaded

Indicates whether the map has been loaded.

Protocol

Gets the SLProtocol instance use to interact with the SLProtocol process.

Methods

ClearData(SLProtocol)

Clears the stored data for the element.

CreateMap(SLProtocol, bool)

Creates a map for an element.

GetData(SLProtocol)

Gets the raw stored data for the element.

GetMap(SLProtocol)

Gets the stored data as an object of type Dictionary<string, object>.

Load()

Gets the data object for this element and buffers it.

SetData(SLProtocol, object)

Stores raw data for the element.