SPHierarchyDataSourceControl.RootWebId property

Gets or sets the root of the tree view.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Property RootWebId As String
Dim instance As SPHierarchyDataSourceControl
Dim value As String

value = instance.RootWebId

instance.RootWebId = value
public string RootWebId { get; set; }

Property value

Type: System.String
The GUID of the root.


The tree view can root at either an SPWeb or an SPList. If only RootWebId is specified, it roots at the corresponding SPWeb. If RootWebId and RootListId are specified, the tree view roots at the list with the identifier RootListId that is in the SPWeb with the identifier RootWebId. In other words, both RootWebId and RootListId are needed to root at an SPList.

See also


SPHierarchyDataSourceControl class

SPHierarchyDataSourceControl members

Microsoft.SharePoint.WebControls namespace