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)

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