OPCDA.NET Reference Manual
AddItems Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > BGGroup Class : AddItems Method

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 ){}

Glossary Item Box

Available in the OPCDA.NET Professional Edition only.
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.

Syntax

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 ){}

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.