'Declaration
<ExtensionAttribute()> Public Overloads Shared Function SubscribeDataSetField( _ ByVal subscriber As IEasyUASubscriber, _ ByVal pubSubConnectionDescriptor As UAPubSubConnectionDescriptor, _ ByVal subscribeDataSetFilter As UASubscribeDataSetFilter, _ ByVal dataSetFieldDescriptor As UADataSetFieldDescriptor, _ ByVal callback As EasyUADataSetFieldMessageEventHandler _ ) As Integer
'Usage
Dim subscriber As IEasyUASubscriber Dim pubSubConnectionDescriptor As UAPubSubConnectionDescriptor Dim subscribeDataSetFilter As UASubscribeDataSetFilter Dim dataSetFieldDescriptor As UADataSetFieldDescriptor Dim callback As EasyUADataSetFieldMessageEventHandler Dim value As Integer value = IEasyUASubscriberExtension.SubscribeDataSetField(subscriber, pubSubConnectionDescriptor, subscribeDataSetFilter, dataSetFieldDescriptor, callback)
[Extension()] public static int SubscribeDataSetField( IEasyUASubscriber subscriber, UAPubSubConnectionDescriptor pubSubConnectionDescriptor, UASubscribeDataSetFilter subscribeDataSetFilter, UADataSetFieldDescriptor dataSetFieldDescriptor, EasyUADataSetFieldMessageEventHandler callback )
[Extension()] public: static int SubscribeDataSetField( IEasyUASubscriber^ subscriber, UAPubSubConnectionDescriptor^ pubSubConnectionDescriptor, UASubscribeDataSetFilter^ subscribeDataSetFilter, UADataSetFieldDescriptor^ dataSetFieldDescriptor, EasyUADataSetFieldMessageEventHandler^ callback )
Parameters
- subscriber
- The subscriber object that will perform the operation.
- pubSubConnectionDescriptor
- The PubSub connection descriptor.
- subscribeDataSetFilter
- Specifies how the incoming PubSub messages should be filtered before being delivered to the application.
- dataSetFieldDescriptor
- The descriptor for the dataset field.
- callback
- A callback method to be invoked for each time a dataset field is received.
Return Value
Returns a dataset field subscription handle that can be used to change the subscription, obtain its arguments, or unsubscribe.