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 value As Subscription
value = instance.AddSubscription(name, publishingInterval)
|
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.
Return Value
The created subscription object.
Requirements
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x
See Also