Condividi tramite


SPMobileComponent.PageType Property

Gets the type of current page.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property PageType As PAGETYPE
    Get
'Usage
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.

See Also

Reference

SPMobileComponent Class

SPMobileComponent Members

Microsoft.SharePoint.MobileControls Namespace