Share via


SPChangeQuery.Alert property

Gets or sets a Boolean value that specifies whether changes to SPAlert objects are included in the query.

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

Syntax

'Declaration
Public Property Alert As Boolean
    Get
    Set
'Usage
Dim instance As SPChangeQuery
Dim value As Boolean

value = instance.Alert

instance.Alert = value
public bool Alert { get; set; }

Property value

Type: System.Boolean
true to include changes to alerts; otherwise, false. The default is false.

Remarks

You can limit the results of the query to particular types of changes by setting the corresponding query properties to true. For example, the following code constructs a query for changes that add alerts.

' Construct a query.
Dim query As New SPChangeQuery(False, False)

' object type 
query.Alert = True

' change type 
query.Add = True
// Construct a query.
SPChangeQuery query = new SPChangeQuery(false, false); 

// object type. 
query.Alert = true;

// change type. 
query.Add = true;

See also

Reference

SPChangeQuery class

SPChangeQuery members

Microsoft.SharePoint namespace

SPChangeAlert