Share via


SPChangeQuery.Delete property

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

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

Syntax

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

value = instance.Delete

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

Property value

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

Remarks

You can limit the results of the query to delete operations on particular objects by setting the corresponding object properties to true. For example, the following code constructs a query for changes that delete list items.

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

' object type 
query.Item = True

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

// object type 
query.Item = true;

// change type 
query.Delete = true;

See also

Reference

SPChangeQuery class

SPChangeQuery members

Microsoft.SharePoint namespace