Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ControlMode Property

SPMobileComponent.ControlMode Property

Gets an object that specifies whether the control's mode is for the New form, the Display form, or the Edit form.

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

public virtual SPControlMode ControlMode { get; }

Property Value

Type: Microsoft.SharePoint.WebControls.SPControlMode
An SPControlMode object that specifies whether the control's mode is for the New form, the Display form, or the Edit form. The default is Display.

The default implementation returns the same value as the ControlMode property of the object in the MobileContext property. Use SPMobileComponent.ControlMode instead of the SPMobileContextControlMode() property of the object held in SPMobileComponent.MobileContext to simplify your code. Do not override ControlMode or you create a chance that its value will be inconsistent with the value of MobileContextControlMode().

Show:
© 2015 Microsoft