4.3.5.5
RemoveAll
Description
Removes all current OPCGroup and OPCItem objects to prepare for server shutdown.
Syntax RemoveAll()
Remarks
This is designed to make thorough sub-object cleanup much easier for clients to ensure all objects
are released when the Server object is released. It is equivalent to calling Remove on all remaining
OPCItem and OPCGroup objects. OPCBrowser objects are not sub-objects of the server, and they
are not removed by this method.
Example
Set OneGroup = MyGroups.Add( “AnOPCGroupName” )
Set OneGroup = MyGroups.Add( “AnOPCGroupName1” )
Set OneGroup = MyGroups.Add( “AnOPCGroupName2” )
‘ some more code here
MyGroups.RemoveAll
Do'stlaringiz bilan baham: |