Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPAlert.AlertTemplate property

Gets or sets the alert template which defines the content and format of an alert message and, in the case of an e-mail version of the alert, also defines the style and rendering.

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

public SPAlertTemplate AlertTemplate { get; set; }

Property value

Type: Microsoft.SharePoint.SPAlertTemplate
An SPAlertTemplate object that represents the alert template. This property contains a null reference (Nothing in Visual Basic) if the alert is a custom alert without a defined template.

ExceptionCondition
SPException

The GUID defined in the alert does not correspond to a template in the database.

The value of this property cannot be changed after the Update method is called.

Show:
© 2015 Microsoft