SPMobileComponent.ControlMode, propriété (Microsoft.SharePoint.MobileControls)

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

Espace de noms : Microsoft.SharePoint.MobileControls
Assembly : Microsoft.SharePoint (dans microsoft.sharepoint.dll)

Syntaxe

'Déclaration
Public Overridable ReadOnly Property ControlMode As SPControlMode
'Utilisation
Dim instance As SPMobileComponent
Dim value As SPControlMode

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

Valeur de la propriété

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.

Notes

The default implementation returns the same value as the ControlMode property of the object in the MobileContext property. Use SPMobileComponent.ControlMode instead of the Microsoft.SharePoint.MobileControls.SPMobileContext.ControlMode 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 Microsoft.SharePoint.MobileControls.SPMobileComponent.MobileContext.ControlMode.

Voir aussi

Référence

SPMobileComponent, classe
Membres SPMobileComponent
Microsoft.SharePoint.MobileControls, espace de noms