Condividi tramite


SPMobileComponent.IsForm Property

Gets a value that indicates whether the page is a form, rather than a list view page or home page.

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

Syntax

'Declaration
Public Overridable ReadOnly Property IsForm As Boolean
    Get
'Usage
Dim instance As SPMobileComponent
Dim value As Boolean

value = instance.IsForm
public virtual bool IsForm { get; }

Property Value

Type: System.Boolean
true if the page is a form; otherwise, false.

Remarks

The default implementation returns the IsForm property of the MobileContext property. Use IsForm instead of Microsoft.SharePoint.MobileControls.SPMobileComponent.MobileContext.IsForm to simplify your code. Do not override IsForm or you create a chance that it will get a value inconsistent with the value of Microsoft.SharePoint.MobileControls.SPMobileComponent.MobileContext.IsForm.

See Also

Reference

SPMobileComponent Class

SPMobileComponent Members

Microsoft.SharePoint.MobileControls Namespace