Поделиться через


SPMobileButtonNavigation Class

Renders a clickable control, usually in the Footer (Navigation) section of a mobile page, that performs a function and causes a postback.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.MobileControls.MobileControl
      Microsoft.SharePoint.MobileControls.SPMobileComponent
        Microsoft.SharePoint.MobileControls.SPMobileNavigation
          Microsoft.SharePoint.MobileControls.SPMobileButtonNavigation
            Microsoft.SharePoint.MobileControls.SPMobileCancelNavigation
            Microsoft.SharePoint.MobileControls.SPMobileDeleteNavigation
            Microsoft.SharePoint.MobileControls.SPMobilePostsRefreshNavigation
            Microsoft.SharePoint.MobileControls.SPMobileRefreshNavigation

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

Syntax

<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPMobileButtonNavigation _
    Inherits SPMobileNavigation

Dim instance As SPMobileButtonNavigation
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPMobileButtonNavigation : SPMobileNavigation

Remarks

Use SPMobileButtonNavigation as a base class for classes that provide some specific type of functionality such as saving an item.

The control is usually a button, but it can be a link. Following the completion of its function, the postback takes the user to the URL in RedirectUrl. This does not have to be a new page. The action might, for example, simply refresh the current page.

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPMobileButtonNavigation Members

Microsoft.SharePoint.MobileControls Namespace