SaveBeforeNavigateHandler 类

添加到页面,导致中是否要保存该页面的控件的编辑模式和用户尝试导航其他页面。

继承层次结构

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      Microsoft.SharePoint.WebControls.SPRibbonCommandHandler
        Microsoft.SharePoint.WebControls.SaveBeforeNavigateHandler

命名空间:  Microsoft.SharePoint.WebControls
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SaveBeforeNavigateHandler _
    Inherits SPRibbonCommandHandler _
    Implements ICallbackEventHandler
用法
Dim instance As SaveBeforeNavigateHandler
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SaveBeforeNavigateHandler : SPRibbonCommandHandler, 
    ICallbackEventHandler

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

SaveBeforeNavigateHandler 成员

Microsoft.SharePoint.WebControls 命名空间