在用户界面中修改警报时,发生此事件的同步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
)
参数
a
类型:Microsoft.SharePoint.SPAlert一个代表通知SPAlert对象。
web
类型:Microsoft.SharePoint.SPWeb一个代表网站SPWeb对象。
newAlert
类型:System.Booleantrue如果正在处理通知是新 ;否则为false。
properties
类型:System.String包含的警报属性的字符串。
返回值
类型:System.Boolean
若要禁止更新或引发SPException可使用一个布尔值。