OPC Historian .NET Server Toolkit Reference
OnDataChange Method (IGenericServer)

The client-generated transactionID passed with the originating call
S_OK if all errors[] are S_OK, S_FALSE otherwise.
The number of items that were read.
The array of objects in which the item 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 AdviseRaw and Async AdviseProcessed.
Syntax
'Usage
 
Dim instance As IGenericServer
Dim transactionID As Integer
Dim status As Integer
Dim numItems As Integer
Dim itemValues() As OPCHDAItem
Dim errors() As Integer
Dim value As Integer
 
value = instance.OnDataChange(transactionID, status, numItems, itemValues, errors)
int OnDataChange( 
   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 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

IGenericServer Interface
IGenericServer Members

 

 


Copyright © 2004-2019 Advosol Inc. All rights reserved

Send Feedback