OPCHDA.NET Reference Manual
CreateTree Method
See Also  Send Feedback
OpcHDAWrapperUA.Net4 Assembly > OPCHDA.NET Namespace > BrowseHDATree Class : CreateTree Method

Glossary Item Box

Browse the server from the root and build a TreeNode structure with all branches and items.
Depending on the property OneLevelBrowseMode, this is done in the initial browse (when FALSE) or incrementally when a branch is selected for the first time (when TRUE). This method does the actual server browsing. It has to be called before any of the other methods can be used. The server is browsed from the root and the browse result is stored in a class internal TreeNode structure. Derived classes handle the browse result in different ways. Use the Root() method to get the created TreeNode[] object and handle is application specific.
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 Function CreateTree() As Integer
C# 
public int CreateTree()

Return Value

HRESULTS error/succes code as defined by OPC

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.