ApplyTemplate(Microsoft.SharePoint.Portal.Alerts.Alert) Method

The ApplyTemplate method of the AlertTemplate class applies the current template settings to the specified Alert object.


alert Reference to an Alert object to which this template is applied.


The following code example shows how to apply an alert template — in this case, the folder alert template — to a new Alert object.


Changes will not be saved to the database unless you call the Commit method for this Alert object.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security