A set of items is added to the group. If the group is in active state then the server makes a data change callback with the current value and then each time the value of one or multiple items changes.
Added items can also be used in read or write operations.
For read and write operations the items don't necessarily be added first. If the item name is specified in the read/write call and the item is not yet member of the group then it is added within the read/write handling.
Visual Basic (Declaration) | |
---|---|
Public Sub AddItems( _ ByVal items() As OPCItemDef, _ ByVal tag As Object, _ ByVal onCompleted As OnBGGrpAddItems _ ) |
C# | |
---|---|
public void AddItems( OPCItemDef[] items, object tag, OnBGGrpAddItems onCompleted ) |
Parameters
- items
- Array with the definitions of the items to be added.
- tag
- This object is passed to the competion handler and allows the user to pass any information that may be needed in the completion handler. Nothing (null) can be specified if the application does not require to pass any information.
- onCompleted
- Completion notification handler. void xxx( BGException ex, OPCItemResult[] rslt, int[] srvHandles, object tag ){}