OPCDA.NET Reference Manual
BrowseTree Class Members
See Also  Fields  Properties  Methods  Events Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace : BrowseTree Class


Glossary Item Box

The following tables list the members exposed by BrowseTree.

Public Constructors

 NameDescription
Public ConstructorBrowseTree ConstructorOverloaded.   
Top

Public Fields

 NameDescription
Public FieldAccessRightsFilter Filter for read/write access rights. The value 0 returns all items.  
Public FieldDoNotSort Branches and items are alphabetically sorted. If TRUE the sorting is diabled and the branches/items are in the order as returned by the server.  
Public FieldImageIndexBranch Index of the image displayed for branches  
Public FieldImageIndexBranchSelected Index of the image displayed for the selected branch  
Public FieldImageIndexItem Base Index of the image group the item identification. The item accessRight code is added and the image with this index is displayed.  
Public FieldItemCodeIndexCode used to identify items and branches in TreeNode.ImageIndex
The isBranchand isItem methods use thye definition to find the type of the node.
Default: Item: >= 2
 
Public FieldNameFilter Name filter used in the the OPC server browse calls. The default is "" (no filtering). A different filter string needs to be set before the Browse method is called.  
Top

Public Properties

 NameDescription
Public PropertyBrowseModeOneLevel If true the the server browsing is done on demand. Initially only one level is browsed. Sub-branches are browsed from the TreeView event handler when a yet unbrowsed branch is selected. If false then the whole server tree structure is browsed and a corresponding TreeNode structure is built. NOTE: With complex servers this may take a long time.  
Public PropertyDataTypeFilter Data type used in the the OPC server browse calls. The default is void (VT_EMPTY). A different type needs to be set before the Browse method is called.  
Public PropertyImageList Image list used in the BrowsTree  
Top

Public Methods

 NameDescription
Public MethodBrowseOverloaded.  Browse all branches/items from the named branch and build a TreeNode structure.  
Public MethodConvertToTreeList Convert the TreeNode structure into a TreeNode structue with branches only. The items are in a ListView structure that is referenced from the TreeNode Tag.  
Public MethodCreateTree Browse the server from the root and build a TreeNode structure with all branches and items.  
Public MethodDispose  
Public MethodisBranch Checks if a node is a branch or an item.  
Public MethodisItem Checks if a node is an item or a branch  
Public MethodItemName Get the full name of the item/branch in the specified branch. This method is typically used to get the name of the node selcted in a treeView.  
Public MethodRefreshSelectedBranch The currently selected branch is refreshed from the server by executing a browse with the current filter.  
Public Methodstatic (Shared in Visual Basic)RevertToSelf  
Public MethodRootReturns the TreeNode structure created in the previous CreateTree() call.
 
Public MethodShowImageList Show all images defined in the BrowseTree ImageList  
Top

Public Events

 NameDescription
Public EventgetBrowseFilter This handler is called everytime the OPC server BrowseItemIDs method is called to get the browse filters to be used.  
Public EventreportBrowseError This handler is called in the TreeView mouse event handler when an error happens in the server browse access.  
Top

See Also

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