'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Overloads Shared Function Constant( _ ByVal metric As SparkplugMetric, _ ByVal valueType As Type, _ ByVal data As SparkplugData _ ) As SparkplugMetric
'UsageDim metric As SparkplugMetric Dim valueType As Type Dim data As SparkplugData Dim value As SparkplugMetric value = SparkplugMetricExtension.Constant(metric, valueType, data)
[Extension()] [JetBrains.Annotations.NotNull()] public static SparkplugMetric Constant( SparkplugMetric metric, Type valueType, SparkplugData data )
[Extension()] [JetBrains.Annotations.NotNull()] public: static SparkplugMetric^ Constant( SparkplugMetric^ metric, Type^ valueType, SparkplugData^ data )
Parameters
- metric
- The Sparkplug metric that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - valueType
- The type of the Sparkplug metric, expressed as .NET System.Type.
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).
Return Value
This method never returns null (Nothing in Visual Basic).