This documentation is archived and is not being maintained.

SPChangeQuery.Rename Property

Windows SharePoint Services 3

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

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

public bool Rename { get; set; }

Property Value

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

You can limit the results by specifying particular object types to report name changes for when you build the query. For example, the following code constructs a query that retrieves name changes to Web sites.

SPChangeQuery query = new SPChangeQuery(false, false);

// object type
query.Web = true;

// change type
query.Rename = true;
Show: