Click or drag to resize
Grid Solutions Framework

DataSourceValueCacheGetDefaultInstance Method

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

Namespace: GrafanaAdapters.DataSources
Assembly: GrafanaAdapters (in GrafanaAdapters.dll) Version: 2.4.171-beta
Syntax
public static IDataSourceValue GetDefaultInstance(
	int dataTypeIndex
)
View Source

Parameters

dataTypeIndex  Int32
Index of target IDataSourceValue to lookup.

Return Value

IDataSourceValue
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