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

dwBrowseType
The type of browse to perform.
nodes
returns the browsed nodes (branches, leafs,..) if the HRESULT is other than S_OK or S_FALSE.

Glossary Item Box

This function returns a string array with all enumerated leaves, branches, or ItemIDs, depending on the browse type requested. Whether a branch is an ItemID is undetermined and may be server dependent. The members of the array set will be determined by the position of the browser in the server address space and the value of the filters when the browser interface was created. If no ItemIDs pass the filter criteria, the array is empty. Thus, a server which has a flat namespace would always return an empty array when asked for a list of branches, and it would return the same list whether it was asked for leafs or ItemIDs, since all of its Items are, by definition, leafs.

Syntax

Visual Basic (Declaration) 
Public Function GetEnum( _
   ByVal dwBrowseType As OPCHDA_BROWSETYPE, _
   ByRef nodes As String() _
) As Integer
C# 
public int GetEnum( 
   OPCHDA_BROWSETYPE dwBrowseType,
   out string[] nodes
)

Parameters

dwBrowseType
The type of browse to perform.
nodes
returns the browsed nodes (branches, leafs,..) if the HRESULT is other than S_OK or S_FALSE.

Return Value

S_OK, S_FALSE, OPC_E_MAXEXCEEDED or 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.