'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Overloads Shared Function Constant(Of TValue)( _ ByVal metric As SparkplugMetric, _ ByVal data As SparkplugData(Of TValue) _ ) As SparkplugMetric
'UsageDim metric As SparkplugMetric Dim data As SparkplugData(Of TValue) Dim value As SparkplugMetric value = SparkplugMetricExtension.Constant(Of TValue)(metric, data)
[Extension()] [JetBrains.Annotations.NotNull()] public static SparkplugMetric Constant<TValue>( SparkplugMetric metric, SparkplugData<TValue> data )
[Extension()] [JetBrains.Annotations.NotNull()] public: static SparkplugMetric^ Constantgeneric<typename TValue> ( SparkplugMetric^ metric, SparkplugData<TValue^>^ data )
Parameters
- metric
- The Sparkplug metric that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - data
- The constant Sparkplug data that will be provided by the metric.
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).