SPMobileComponent.PageType Property
Gets the type of current page.
Namespace: Microsoft.SharePoint.MobileControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
Public Overridable ReadOnly Property PageType As PAGETYPE
Get
Dim instance As SPMobileComponent
Dim value As PAGETYPE
value = instance.PageType
public virtual PAGETYPE PageType { get; }
Property Value
Type: Microsoft.SharePoint.PAGETYPE
A PAGETYPE value that indicates the type of the current page.
Remarks
The default implementation returns the same value as the PageType property of the object in the MobileContext property. Use PageType instead of Microsoft.SharePoint.MobileControls.SPMobileComponent.MobileContext.PageType to simplify your code. Do not override PageType or you create a chance that its value will be inconsistent with the value of Microsoft.SharePoint.MobileControls.SPMobileComponent.MobileContext.PageType.