EasyUA Reference
BeginAddSubscription(String,Int32,AsyncCallback,Object) Method
See Also  Send Feedback
EasyUA Assembly > Advosol.EasyUA Namespace > Session Class > BeginAddSubscription Method : BeginAddSubscription(String,Int32,AsyncCallback,Object) Method

name
The display name of the subscription.
publishingInterval
This interval defines the cyclic rate that the Subscription is being requested to return Notifications to the Client. This interval is expressed in milliseconds. This interval is represented by the publishing timer in the Subscription state table. The negotiated value for this parameter returned in the response is used as the default sampling interval for MonitoredItems assigned to this Subscription. If the requested value is 0 or negative, the server shall revise with the fastest supported publishing interval.
callback
The callback to use when the async call completes.
userData
The user data that is passed to the callback.

Glossary Item Box

Asynchronously adds a new subscription to the session using default parameters. session.SubscriptionRequestKeepaliveCount session.SubscriptionRequestLifetimeCount session.SubscriptionPriority

Syntax

Visual Basic (Usage)Copy Code
Dim instance As Session
Dim name As String
Dim publishingInterval As Integer
Dim callback As AsyncCallback
Dim userData As Object
Dim value As IAsyncResult
 
value = instance.BeginAddSubscription(name, publishingInterval, callback, userData)

Parameters

name
The display name of the subscription.
publishingInterval
This interval defines the cyclic rate that the Subscription is being requested to return Notifications to the Client. This interval is expressed in milliseconds. This interval is represented by the publishing timer in the Subscription state table. The negotiated value for this parameter returned in the response is used as the default sampling interval for MonitoredItems assigned to this Subscription. If the requested value is 0 or negative, the server shall revise with the fastest supported publishing interval.
callback
The callback to use when the async call completes.
userData
The user data that is passed to the callback.

Return Value

An object which must be passed to the EndAddSubscription method.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.