SPHierarchyDataSourceControl.RootListId property
The treeview can either root at a SPWeb or an SPList. If only RootWebId is specified, then it will root at the corresponding SPWeb. If RootWebId and RootListId are specified, then the treeview will root at the list with id RootListId that is in the SPWeb with Id RootWebId. In other words, both RootWebId and RootListId are needed to root at a SPList.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property RootListId As String
Get
Set
'Usage
Dim instance As SPHierarchyDataSourceControl
Dim value As String
value = instance.RootListId
instance.RootListId = value
public string RootListId { get; set; }
Property value
Type: System.String
See also
Reference
SPHierarchyDataSourceControl class