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)

Syntax

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

value = instance.Navigation

instance.Navigation = value
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