OPC Historian .NET Server Toolkit Reference
GetItemHandles Method (IAppPlugin)

An array of null terminated strings that uniquely identify the OPC HDA items.
The handle of the client to be associated with the item.
OUT: The returned handle of the server used to refer to this item.
OUT: The status of association of the client to the server.
Given a list of ItemIDs and client handles, this method returns the server handles for each item. The returned server handles must be used in all requests to read or update history. The supplied client handles are included in the returns of all read and update requests.
Syntax
'Usage
 
Dim instance As IAppPlugin
Dim itemID() As String
Dim clientHnd() As Integer
Dim serverHnd As Integer()
Dim errors As Integer()
Dim value As Integer
 
value = instance.GetItemHandles(itemID, clientHnd, serverHnd, errors)
int GetItemHandles( 
   string[] itemID,
   int[] clientHnd,
   out int[] serverHnd,
   out int[] errors
)

Parameters

itemID
An array of null terminated strings that uniquely identify the OPC HDA items.
clientHnd
The handle of the client to be associated with the item.
serverHnd
OUT: The returned handle of the server used to refer to this item.
errors
OUT: The status of association of the client to the server.

Return Value

HRESULTS success/error code.
Remarks
The item is searched in the handle list or added if possible. The list index is returned as the server handle.
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

IAppPlugin Interface
IAppPlugin Members

 

 


Copyright © 2004-2019 Advosol Inc. All rights reserved

Send Feedback