Partilhar via


SPChangeQuery.Navigation Property

Gets or sets a Boolean value that specifies whether navigation changes 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 Navigation As Boolean
    Get
    Set
'Usage
Dim instance As SPChangeQuery
Dim value As Boolean

value = instance.Navigation

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

Property Value

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

Remarks

You can use this property to track changes to navigation on a Web site, including the Quick Launch area and the top navigation bar. To retrieve the changes, call the SPWeb.GetChanges(SPChangeQuery) method, passing a query such as the one shown in the following example.

Dim query As New SPChangeQuery(False, False)

' object type
query.Web = True

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

// object type
query.Web = true;

// change type 
query.Navigation = true;

See Also

Reference

SPChangeQuery Class

SPChangeQuery Members

Microsoft.SharePoint Namespace

SPChangeWeb

Navigation

SPNavigation