Partager 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)

Syntax

Public ReadOnly Property ControlMode As SPControlMode
    Get

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