SPChangeQuery.Navigation property
取得或設定指定是否要將導覽變更包含在查詢中的Boolean值。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property Navigation As Boolean
Get
Set
'用途
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包含導覽變更 ;否則, false。預設值為false。
備註
您可以使用這個屬性來追蹤瀏覽網站,包括 [快速啟動] 區域和上方導覽列上的變更。若要擷取的變更,呼叫SPWeb.GetChanges(SPChangeQuery)方法,傳遞查詢,如下列範例所示。
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;