'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Overloads Shared Function ConstantValue( _ ByVal metric As SparkplugMetric, _ ByVal valueType As Type, _ ByVal value As Object _ ) As SparkplugMetric
'UsageDim metric As SparkplugMetric Dim valueType As Type Dim value As Object Dim value As SparkplugMetric value = SparkplugMetricExtension.ConstantValue(metric, valueType, value)
[Extension()] [JetBrains.Annotations.NotNull()] public static SparkplugMetric ConstantValue( SparkplugMetric metric, Type valueType, object value )
[Extension()] [JetBrains.Annotations.NotNull()] public: static SparkplugMetric^ ConstantValue( SparkplugMetric^ metric, Type^ valueType, Object^ value )
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). - value
- The constant value that will be provided by the Sparkplug metric.
The value of this parameter can be
null(Nothingin Visual Basic).
Return Value
This method never returns null (Nothing in Visual Basic).