|
ParametersValueT(String) Method
|
Gets typed value of parameter with specified name, if name is found and the
value can be cast as type.
Namespace: GrafanaAdapters.FunctionsAssembly: GrafanaAdapters (in GrafanaAdapters.dll) Version: 2.4.207-beta
Syntax public T Value<T>(
string name
)
Public Function Value(Of T) (
name As String
) As T
public:
generic<typename T>
T Value(
String^ name
)
member Value :
name : string -> 'T
JavaScript does not support generic types or methods.
View SourceParameters
- name String
- Name of parameter to get.
Type Parameters
- T
- The type of the parameter.
Return Value
T
The typed value of parameter with the specified name if the parameter name can be found
and the value can be cast to specified type; otherwise, default value.
Remarks
Parameter name lookup dictionary is lazy initialized. Using index-based lookups is more efficient.
This function will not throw an exception if the name is not found.
See Also