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).
Visual Basic (Declaration) | |
---|---|
Public Function CreateTree() As Integer |
C# | |
---|---|
public int CreateTree() |
Return Value
HRESULTS error/succes code as defined by OPCTarget Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.x