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

arrHSrv
Array of server item handles of the items to be read
transactionID
The Client generated transaction ID. This is included in the 'completion' information provided to the OnReadComplete.
cancelID
Place to return a Server generated ID to be used in case the operation needs to be canceled.
arrErr

Glossary Item Box

Read one or more items in a group. The results are returned via the client's IOPCcallback connection established through the server's IConnectionPointContainer. Reads are from 'DEVICE' and are not affected by the ACTIVE state of the group or item. ( IOPCAsyncIO2::Read )

Syntax

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

Parameters

arrHSrv
Array of server item handles of the items to be read
transactionID
The Client generated transaction ID. This is included in the 'completion' information provided to the OnReadComplete.
cancelID
Place to return a Server generated ID to be used in case the operation needs to be canceled.
arrErr

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.