OPCDA.NET Reference Manual
Write Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET.Controls Namespace > DAGroup Class : Write Method

values
Array of item identifiers. ItemDefinitionSets defined in the Visual Studio Designer can be used as the as the argument. Only the value to be written needs to be modified in the DAItemValue objects.
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
Competion notification handler. void xxx(BGException ex, DAItemValue[] rslt, object tag){}

Glossary Item Box

Available in the OPCDA.NET Professional Edition only.
Write a set of items by executing an asynchronous write call in a background thread of the BGGroup class. The call returns immediately after the request is queued. The success of the write call is reported in the completion event handler arguments. Complete failure is indicated in the exception argument. Error writing certain items are reported in the Error field of the rslt object.

Syntax

Visual Basic (Declaration) 
Public Sub Write( _
   ByVal values() As DAItemValue, _
   ByVal tag As Object, _
   ByVal onCompleted As DAWriteComplete _
) 

Parameters

values
Array of item identifiers. ItemDefinitionSets defined in the Visual Studio Designer can be used as the as the argument. Only the value to be written needs to be modified in the DAItemValue objects.
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
Competion notification handler. void xxx(BGException ex, DAItemValue[] rslt, 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.