OPC Historian .NET Server Toolkit Reference
OnReadAttributeComplete Method (GenericServer)

The client-generated transactionID passed with the originating call
S_OK if all errors[] are S_OK, S_FALSE otherwise.
The client handle for the item.
The number of items that were read.
The array of objects in which the attribute values are returned.
A list of HRESULTS for the items.
This method makes callbacks to the client though the generic server. It is to be used to return data from Async ReadAttribute
Syntax
'Usage
 
Dim instance As GenericServer
Dim transactionID As Integer
Dim status As Integer
Dim hndClient As Integer
Dim numItems As Integer
Dim AttributeValues() As OPCHDAAttribute
Dim errors() As Integer
Dim value As Integer
 
value = instance.OnReadAttributeComplete(transactionID, status, hndClient, numItems, AttributeValues, errors)
public int OnReadAttributeComplete( 
   int transactionID,
   int status,
   int hndClient,
   int numItems,
   OPCHDAAttribute[] AttributeValues,
   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.
hndClient
The client handle for the item.
numItems
The number of items that were read.
AttributeValues
The array of objects in which the attribute values are returned.
errors
A list of HRESULTS for the items.

Return Value

HRESULTS success/error code
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GenericServer Class
GenericServer Members

 

 


Copyright © 2004-2019 Advosol Inc. All rights reserved

Send Feedback