XMLDA.NET Reference
BrowseTree Method
See Also  Send Feedback
xmldanet Namespace > XmlServer Class : BrowseTree Method

startPath
ItemPath of the start branch
startName
ItemName of the start branch
OneLevelOnly
if true, no recursive browsing
propertyNames
names of item properties to be returned
allProperties
if true, the server ignores the propertyNames argument and returns all item properties.
propertyValues
if true, the server returns the current values of the requested properties
err
OPCError array with errors returned from the XML-DA server in the Browse() method. Many error conditions cause an exception to be thrown instead of returned as an error code.

Glossary Item Box

A TreeNode structure is created, starting from the specifeid branch. The BrowseElement object returned from the server is copied into the Tag property of the TreeNode object. It contains the detail information according the XML-DA specs.

Syntax

Visual Basic (Usage)Copy Code
Dim instance As XmlServer
Dim startPath As String
Dim startName As String
Dim OneLevelOnly As Boolean
Dim propertyNames() As XmlQualifiedName
Dim allProperties As Boolean
Dim propertyValues As Boolean
Dim err As OPCError()
Dim value() As TreeViewItem
 
value = instance.BrowseTree(startPath, startName, OneLevelOnly, propertyNames, allProperties, propertyValues, err)
C# 
public TreeViewItem[] BrowseTree( 
   string startPath,
   string startName,
   bool OneLevelOnly,
   XmlQualifiedName[] propertyNames,
   bool allProperties,
   bool propertyValues,
   out OPCError[] err
)

Parameters

startPath
ItemPath of the start branch
startName
ItemName of the start branch
OneLevelOnly
if true, no recursive browsing
propertyNames
names of item properties to be returned
allProperties
if true, the server ignores the propertyNames argument and returns all item properties.
propertyValues
if true, the server returns the current values of the requested properties
err
OPCError array with errors returned from the XML-DA server in the Browse() method. Many error conditions cause an exception to be thrown instead of returned as an error code.

Return Value

TreeNode structure with all

Requirements

Target Platforms:Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

>

See Also

© 2002-2012 Advosol Inc. All Rights Reserved.