共用方式為


SPHierarchyDataSourceControl.Web Property

Gets or sets the SPWeb to be used as a data source.

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

Syntax

'Declaration
Public Property Web As SPWeb
    Get
    Set
'Usage
Dim instance As SPHierarchyDataSourceControl
Dim value As SPWeb

value = instance.Web

instance.Web = value
public SPWeb Web { get; set; }

Property Value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object.

See Also

Reference

SPHierarchyDataSourceControl Class

SPHierarchyDataSourceControl Members

Microsoft.SharePoint.WebControls Namespace