'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Overloads Shared Function ValueType( _ ByVal metric As SparkplugMetric, _ ByVal dataType As SparkplugDataType, _ ByVal initializeData As Boolean _ ) As SparkplugMetric
'UsageDim metric As SparkplugMetric Dim dataType As SparkplugDataType Dim initializeData As Boolean Dim value As SparkplugMetric value = SparkplugMetricExtension.ValueType(metric, dataType, initializeData)
[Extension()] [JetBrains.Annotations.NotNull()] public static SparkplugMetric ValueType( SparkplugMetric metric, SparkplugDataType dataType, bool initializeData )
[Extension()] [JetBrains.Annotations.NotNull()] public: static SparkplugMetric^ ValueType( SparkplugMetric^ metric, SparkplugDataType dataType, bool initializeData )
Parameters
- metric
- The Sparkplug metric that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - dataType
- The Sparkplug data type of the metric.
- initializeData
- Specifies whether the metric data should be initialized to default values for the given dataType.
Return Value
This method never returns null (Nothing in Visual Basic).