Partilhar via


SPChangeQuery.Rename Property

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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property Rename As Boolean
    Get
    Set
'Usage
Dim instance As SPChangeQuery
Dim value As Boolean

value = instance.Rename

instance.Rename = value
[ClientCallableAttribute]
public bool Rename { get; set; }

Property Value

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

Remarks

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.

Dim query As New SPChangeQuery(False, False)

' object type
query.Web = True

' change type
query.Rename = True
SPChangeQuery query = new SPChangeQuery(false, false);

// object type
query.Web = true;

// change type
query.Rename = true;

See Also

Reference

SPChangeQuery Class

SPChangeQuery Members

Microsoft.SharePoint Namespace