SPMobileButtonNavigation.ButtonFormat, propriété (Microsoft.SharePoint.MobileControls)

Gets or sets a value that determines whether the control is a link or a button.

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

Syntaxe

'Déclaration
Public Overridable Property ButtonFormat As CommandFormat
'Utilisation
Dim instance As SPMobileButtonNavigation
Dim value As CommandFormat

value = instance.ButtonFormat

instance.ButtonFormat = value
public virtual CommandFormat ButtonFormat { get; set; }

Valeur de la propriété

A CommandFormat value that indicates whether the control is a button or a link.

Notes

The default implementation has Button as the default value.

Even if the control is a link, however, it does not directly navigate to a new page. Regardless of whether it is a button or link, the control causes a postback, which opens the page at RedirectUrl after the control's function is completed.

Contrast SPMobileButtonNavigation with SPMobileLinkNavigation, which directly navigates to a new page without causing a postback.

Voir aussi

Référence

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