IAlertUpdateHandler.PreUpdate 方法

在用户界面中修改警报时,发生此事件的同步Before事件。

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

语法

声明
Function PreUpdate ( _
    a As SPAlert, _
    web As SPWeb, _
    newAlert As Boolean, _
    properties As String _
) As Boolean
用法
Dim instance As IAlertUpdateHandler
Dim a As SPAlert
Dim web As SPWeb
Dim newAlert As Boolean
Dim properties As String
Dim returnValue As Boolean

returnValue = instance.PreUpdate(a, web, _
    newAlert, properties)
bool PreUpdate(
    SPAlert a,
    SPWeb web,
    bool newAlert,
    string properties
)

参数

  • newAlert
    类型:System.Boolean

    true如果正在处理通知是新 ;否则为false。

  • properties
    类型:System.String

    包含的警报属性的字符串。

返回值

类型:System.Boolean
若要禁止更新或引发SPException可使用一个布尔值。

另请参阅

引用

IAlertUpdateHandler 接口

IAlertUpdateHandler 成员

Microsoft.SharePoint 命名空间