uaPLUS Reference
OnReadComplete Method
See Also  Send Feedback
HDAPluginDA Namespace > HdaGenericServer Class : OnReadComplete Method

transactionID
The client-generated transactionID passed with the originating call
status
S_OK if all errors[] are S_OK, S_FALSE otherwise.
numItems
The number of items that were read.
itemValues
The array of objects in which the item values are returned.
errors
A list of HRESULTS for the items.

Glossary Item Box

This method makes callbacks to the client though the generic server. It is to be used to return data from Async ReadRaw, Async ReadProcessed, and Async ReadAtTime.

Syntax

Visual Basic (Declaration) 
Public Function OnReadComplete( _
   ByVal transactionID As Integer, _
   ByVal status As Integer, _
   ByVal numItems As Integer, _
   ByVal itemValues() As OPCHDAItem, _
   ByVal errors() As Integer _
) As Integer
C# 
public int OnReadComplete( 
   int transactionID,
   int status,
   int numItems,
   OPCHDAItem[] itemValues,
   int[] errors
)

Parameters

transactionID
The client-generated transactionID passed with the originating call
status
S_OK if all errors[] are S_OK, S_FALSE otherwise.
numItems
The number of items that were read.
itemValues
The array of objects in which the item values are returned.
errors
A list of HRESULTS for the items.

Return Value

HRESULTS success/error code

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

© 2010-2018 Copyright Advosol Inc. All Rights Reserved.