PreUpdate Method
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

IAlertUpdateHandler.PreUpdate Method

Windows SharePoint Services 3

Synchronous Before event that occurs when an alert is modified in the user interface.

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

bool PreUpdate(
	SPAlert a,
	SPWeb web,
	bool newAlert,
	string properties


Type: Microsoft.SharePoint.SPAlert
An SPAlert object representing the alert.
Type: Microsoft.SharePoint.SPWeb
An SPWeb object representing the Web site.
Type: System.Boolean
true if the alert being handled is new; otherwise, false.
Type: System.String
A string containing properties of the alert.

Return Value

Type: System.Boolean
A Boolean value that can be used to prevent the update or to throw an SPException.
© 2016 Microsoft