Click or drag to resize
Grid Solutions Framework

Parameters Class

Represents a collection of mutable parameters.
Inheritance Hierarchy
SystemObject
  GrafanaAdapters.FunctionsParameters

Namespace: GrafanaAdapters.Functions
Assembly: GrafanaAdapters (in GrafanaAdapters.dll) Version: 2.4.218-beta
Syntax
View Source

The Parameters type exposes the following members.

Properties
 NameDescription
Public propertyCountGets the number of elements contained in the ICollectionT.
Public propertyIsReadOnlyGets a value indicating whether the ICollectionT is read-only.
Public propertyItemInt32Gets or sets the element at the specified index.
Public propertyItemString Gets or sets the parameter with the specified name.
Public propertyMetadataMaps Gets or sets collection of target user selected metadata associated with the data source values.
Public propertyParsedCount Gets or sets the number of parameters that have been parsed.
Top
Methods
 NameDescription
Public methodAddAdds an item to the ICollectionT.
Public methodClearRemoves all items from the ICollectionT.
Public methodContainsDetermines whether the ICollectionT contains a specific value.
Public methodCopyToCopies the elements of the ICollectionT to an Array, starting at a particular Array index.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetEnumeratorReturns an enumerator that iterates through the collection.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOfDetermines the index of a specific item in the IListT.
Public methodInsertInserts an item to the IListT at the specified index.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemoveRemoves the first occurrence of a specific object from the ICollectionT.
Public methodRemoveAtRemoves the IListT item at the specified index.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodValue(Int32) Gets value of parameter at specified index, if the index is valid.
Public methodValue(String) Gets value of parameter with specified name, if name is found.
Public methodValueT(Int32) Gets typed value of parameter at specified index, if the index is valid and the value can be cast as type.
Public methodValueT(String) Gets typed value of parameter with specified name, if name is found and the value can be cast as type.
Top
Remarks

New instances of this class should be created by using the CreateParameters method.

This collection holds a distinct set of parameters generated for each function call, ensuring thread-safe operation when multiple threads execute the same function simultaneously. The ParameterDefinitions class outlines all possible parameters for a function, both required and optional, effectively determining its signature. Parameters in this collection represent the values extracted from the user-provided function expression and, when presented to a function, have already been validated and parsed by type. Additionally, the class provides access to the data source values expression; function implementations can call GetDataSourceValues(Parameters) to get current data source values. The parameters in this collection are mutable, implying ownership by the function, and can be safely modified as needed. To identify which optional parameters have been parsed and are available, refer to the ParsedCount property.

See Also