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