OPCDA.NET Reference Manual
Write(Int32[],Object[],Int32,Int32,Int32[]) Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcGroup Class > Write Method : Write(Int32[],Object[],Int32,Int32,Int32[]) Method

arrHSrv
IN: List of server items handles for the items to be written
arrVal
IN: List of values to be written. The value data types do not match the requested or canonical item datatype but must be 'convertible' to the canonical type.
transactionID
IN: The Client generated transaction ID. This is included in the 'completion' information provided to the OnWriteComplete.
cancelID
OUT: Place to return a Server generated ID to be used in case the operation needs to be canceled.
arrErr
OUT: Array of errors for each item (See OPC spec)

Glossary Item Box

Write one or more items in a group. The results are returned via the client's IOPCDataCallback connection established through the server's IConnectionPointContainer. ( IOPCAsyncIO2::Write )

Syntax

Visual Basic (Declaration) 
Public Overloads Function Write( _
   ByVal arrHSrv() As Integer, _
   ByVal arrVal() As Object, _
   ByVal transactionID As Integer, _
   ByRef cancelID As Integer, _
   ByRef arrErr As Integer() _
) As Integer
C# 
public int Write( 
   int[] arrHSrv,
   object[] arrVal,
   int transactionID,
   out int cancelID,
   out int[] arrErr
)

Parameters

arrHSrv
IN: List of server items handles for the items to be written
arrVal
IN: List of values to be written. The value data types do not match the requested or canonical item datatype but must be 'convertible' to the canonical type.
transactionID
IN: The Client generated transaction ID. This is included in the 'completion' information provided to the OnWriteComplete.
cancelID
OUT: Place to return a Server generated ID to be used in case the operation needs to be canceled.
arrErr
OUT: Array of errors for each item (See OPC spec)

Return Value

HRESULT success/error code

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.