'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Overloads Shared Function WriteValueAction(Of TValue)( _ ByVal metric As SparkplugMetric, _ ByVal declaredTypeCode As TypeCode, _ ByVal writeValueAction As Action(Of TValue) _ ) As SparkplugMetric
'UsageDim metric As SparkplugMetric Dim declaredTypeCode As TypeCode Dim writeValueAction As Action(Of TValue) Dim value As SparkplugMetric value = SparkplugMetricExtension.WriteValueAction(Of TValue)(metric, declaredTypeCode, writeValueAction)
[Extension()] [JetBrains.Annotations.NotNull()] public static SparkplugMetric WriteValueAction<TValue>( SparkplugMetric metric, TypeCode declaredTypeCode, Action<TValue> writeValueAction )
[Extension()] [JetBrains.Annotations.NotNull()] public: static SparkplugMetric^ WriteValueActiongeneric<typename TValue> ( SparkplugMetric^ metric, TypeCode declaredTypeCode, Action<TValue^>^ writeValueAction )
Parameters
- metric
- The Sparkplug metric that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - declaredTypeCode
- The declared type of the Sparkplug metric, expressed as .NET type code (System.TypeCode).
- writeValueAction
- The write value action, i.e. the action that accepts the value to be written and performs the write operation.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Type Parameters
- TValue
- The type of the value of the Sparkplug metric.
Return Value
This method never returns null (Nothing in Visual Basic).