'Declaration<ExtensionAttribute()> Public Shared Sub WriteMetricValue( _ ByVal producer As ISparkplugProducer, _ ByVal metricName As String, _ ByVal value As Object _ )
'UsageDim producer As ISparkplugProducer Dim metricName As String Dim value As Object ISparkplugProducerExtension.WriteMetricValue(producer, metricName, value)
[Extension()] public static void WriteMetricValue( ISparkplugProducer producer, string metricName, object value )
[Extension()] public: static void WriteMetricValue( ISparkplugProducer^ producer, String^ metricName, Object^ value )
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). - value
- The value to write to the Sparkplug metric.
The value of this parameter can be
null(Nothingin Visual Basic).