4.4.4.5
IsSubscribed
Description
(Read/Write) This property controls asynchronous notifications to the group. A group that is
subscribed receives data changes from the server.
Syntax
IsSubscribed As Boolean
Remarks
Default value for this property is the value from the OPCGroups corresponding default value at
time of the Add();
Example
VB Syntax Example (getting the property):
Dim CurrentValue As Boolean
Set MyGroups = AnOPCServer.OPCGroups
Set OneGroup = MyGroups.ConnectPublicGroup ( “AnOPCGroupName” )
‘ some more code here
Set CurrentValue = OneGroup.IsSubscribed ‘ to get the value
VB Syntax Example (setting the property):
Set MyGroups = AnOPCServer.OPCGroups
Set OneGroup = MyGroups.ConnectPublicGroup ( “AnOPCGroupName” )
‘ some more code here
OneGroup.IsSubscribed = True ‘ to set the value
Do'stlaringiz bilan baham: |