Share via


SPMobileContext.ControlMode Property

Gets the control mode of the current page or form: Display, New, or Edit.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property ControlMode As SPControlMode
    Get
'Usage
Dim instance As SPMobileContext
Dim value As SPControlMode

value = instance.ControlMode
public SPControlMode ControlMode { get; }

Property Value

Type: Microsoft.SharePoint.WebControls.SPControlMode
An SPControlMode that specifies whether the current form is for displaying, creating, or editing a list item.

See Also

Reference

SPMobileContext Class

SPMobileContext Members

Microsoft.SharePoint Namespace