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