다음을 통해 공유


SPHierarchyDataSourceControl.RootWebId Property

Gets or sets the root of the tree view.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property RootWebId As String
    Get
    Set
'Usage
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.

Remarks

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

Reference

SPHierarchyDataSourceControl Class

SPHierarchyDataSourceControl Members

Microsoft.SharePoint.WebControls Namespace