OPCHDA.NET-UA
GetItemHandles Method
See Also  Send Feedback
OpcHDaNetUaOption.Net4 Assembly > hdaUAwrapper Namespace > HDAServer Class : GetItemHandles Method

itemID
An array of strings that uniquely identify the OPC HDA items.
client
The handle of the client to be associated with the item.
server
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.

Glossary Item Box

Given a list of ItemIDs and client handles, this function 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

Visual Basic (Declaration) 
Public Function GetItemHandles( _
   ByVal itemID() As String, _
   ByVal client() As Integer, _
   ByRef server As Integer(), _
   ByRef errors As Integer() _
) As Integer
C# 
public int GetItemHandles( 
   string[] itemID,
   int[] client,
   out int[] server,
   out int[] errors
)

Parameters

itemID
An array of strings that uniquely identify the OPC HDA items.
client
The handle of the client to be associated with the item.
server
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

S_OK, S_FALSE, E_FAIL

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.