'Declaration<ExtensionAttribute()> Public Overloads Shared Function SubscribeEdgeNodeMetric( _ ByVal consumer As IEasySparkplugConsumer, _ ByVal edgeNodeDescriptor As SparkplugEdgeNodeDescriptor, _ ByVal metricName As String, _ ByVal callback As EasySparkplugMetricNotificationEventHandler _ ) As Integer
'UsageDim consumer As IEasySparkplugConsumer Dim edgeNodeDescriptor As SparkplugEdgeNodeDescriptor Dim metricName As String Dim callback As EasySparkplugMetricNotificationEventHandler Dim value As Integer value = IEasySparkplugConsumerExtension.SubscribeEdgeNodeMetric(consumer, edgeNodeDescriptor, metricName, callback)
[Extension()] public static int SubscribeEdgeNodeMetric( IEasySparkplugConsumer consumer, SparkplugEdgeNodeDescriptor edgeNodeDescriptor, string metricName, EasySparkplugMetricNotificationEventHandler callback )
[Extension()] public: static int SubscribeEdgeNodeMetric( IEasySparkplugConsumer^ consumer, SparkplugEdgeNodeDescriptor^ edgeNodeDescriptor, String^ metricName, EasySparkplugMetricNotificationEventHandler^ callback )
Parameters
- consumer
- The consumer object that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - edgeNodeDescriptor
- The Sparkplug edge node descriptor.
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). - callback
- The callback to invoke for the notification.
The value of this parameter can be
null(Nothingin Visual Basic).