SPMobileComponent.Web 属性
获取当前 SharePoint 网站。
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overridable ReadOnly Property Web As SPWeb
Get
用法
Dim instance As SPMobileComponent
Dim value As SPWeb
value = instance.Web
public virtual SPWeb Web { get; }
属性值
类型:Microsoft.SharePoint.SPWeb
代表当前 SharePoint 网站SPWeb 。
备注
默认实现返回SharePointContext属性Web属性的值。使用,而不是Microsoft.SharePoint.Mobile.WebControls.SPMobileComponent.SharePointContext.WebWeb简化您的代码。不会替代Web或创建有机会在其值将Microsoft.SharePoint.Mobile.WebControls.SPMobileComponent.SharePointContext.Web的值不一致。