Cette documentation est archivée et n’est pas conservée.

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

Windows SharePoint Services 3
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)

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.

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.

Afficher: