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

idef
IN: ItemDef item definition object
TransactionId
This value is returned in the ReadComplete callback to allow the value to be associated with the Read call.

Glossary Item Box

Read the current value of the item specified by the ItemDef object. An asynchronous OpcGroup read call is executed. The value is returned in the ReadComplete callback handler.
This simplified Read overload does not return a cancel ID and therefore does not allow the call to be cancelled.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Read( _
   ByVal idef As ItemDef, _
   ByVal TransactionId As Integer _
) As Integer
C# 
public int Read( 
   ItemDef idef,
   int TransactionId
)

Parameters

idef
IN: ItemDef item definition object
TransactionId
This value is returned in the ReadComplete callback to allow the value to be associated with the Read call.

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.