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

arrHSrv
The array of server item handles for the items to be read
arrVal
List of values to be written to the items. The datatypes of the values do not need to match the datatypes of the target items. However an error will be returned if a conversion cannot be done. null values are not allowed. If any element of the arrVal array is null the call fails with error E_INVALIDARG.
arrErr
If the call is generally successful a HRESULTS error/success code is returnd for each item. If the call fails with an error code then this array is undefined.

Glossary Item Box

Writes values to one or more items in a group. The function runs to completion. The values are written to the DEVICE. That is, the function should not return until it verifies that the device has actually accepted (or rejected) the data. ( IOPCSyncIO::Write )

Syntax

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

Parameters

arrHSrv
The array of server item handles for the items to be read
arrVal
List of values to be written to the items. The datatypes of the values do not need to match the datatypes of the target items. However an error will be returned if a conversion cannot be done. null values are not allowed. If any element of the arrVal array is null the call fails with error E_INVALIDARG.
arrErr
If the call is generally successful a HRESULTS error/success code is returnd for each item. If the call fails with an error code then this array is undefined.

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.