OPCHDA.NET Reference Manual
Browse(String,TreeNode[]) Method
See Also  Send Feedback
OpcHDAWrapperUA.Net4 Assembly > OPCHDA.NET Namespace > BrowseHDATree Class > Browse Method : Browse(String,TreeNode[]) Method

startBranch
IN: name of the branch to be browsed
tree
OUT TreeNode structure with all branches and items

Glossary Item Box

Browse all branches/leafs from the defined branch and build a TreeNode structure.
The HDA browser assigned to this object is used. The browsing is done with the filters defined for this HDA browser.
If the OneLevelBrowseMode property is true, then only the specified branch is browsed. Otherwise the server is browsed recursively from the defined start branch.
The created TreeNode structure contains on each level all the items and sub-branches. Use the methods isItem() and isBranch() to determine what a specific TreeNode object represents.
The TreeNode Tag property contains the fully qualified name of this node (item or branch).

Syntax

Visual Basic (Declaration) 
Public Overloads Function Browse( _
   ByVal startBranch As String, _
   ByRef tree As TreeNode() _
) As Integer
C# 
public int Browse( 
   string startBranch,
   out TreeNode[] tree
)

Parameters

startBranch
IN: name of the branch to be browsed
tree
OUT TreeNode structure with all branches and items

Return Value

HRESULTS error/succes code as defined by OPC

Remarks

This is a low level method that may be used to browse part of the server

Requirements

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

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.