'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Shared Function GetMetric( _ ByVal producer As ISparkplugProducer, _ ByVal metricName As String _ ) As SparkplugMetric
'UsageDim producer As ISparkplugProducer Dim metricName As String Dim value As SparkplugMetric value = ISparkplugProducerExtension.GetMetric(producer, metricName)
[Extension()] [JetBrains.Annotations.NotNull()] public static SparkplugMetric GetMetric( ISparkplugProducer producer, string metricName )
[Extension()] [JetBrains.Annotations.NotNull()] public: static SparkplugMetric^ GetMetric( ISparkplugProducer^ producer, String^ metricName )
Parameters
- producer
- The Sparkplug producer that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - metricName
- The Sparkplug metric name.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Return Value
This method never returns null (Nothing in Visual Basic).