Click or drag to resize
Grid Solutions Framework

DataSourceValueTypeCacheGetDefaultInstance Method

Gets a default instance of the specified data source value type (by index).

Namespace: GrafanaAdapters.DataSourceValueTypes
Assembly: GrafanaAdapters (in GrafanaAdapters.dll) Version: 2.4.182-beta
Syntax
public static IDataSourceValueType GetDefaultInstance(
	int dataTypeIndex
)
View Source

Parameters

dataTypeIndex  Int32
Index of target IDataSourceValueType to lookup.

Return Value

IDataSourceValueType
Default instance of the specified data source value type, found by index.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionInvalid data type index provided.
Remarks
Use this method to provide a cleaner, more specific, error message to the user when a data source value type is specified that is not found.
See Also