共用方式為


SPChangeCollection.CountLimit field

NOTE: This API is now obsolete.

這個常數已過時。請改用 [ FetchLimit ] 屬性。

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

Syntax

'宣告
<ObsoleteAttribute("Use SPChangeQuery.FetchLimit instead, or continue fetching until 0 changes are returned.")> _
Public Const CountLimit As Integer
'用途
Dim value As Integer

value = SPChangeCollection.CountLimit
[ObsoleteAttribute("Use SPChangeQuery.FetchLimit instead, or continue fetching until 0 changes are returned.")]
public const int CountLimit

備註

這個常數的值是 1000年。這是預設的GetChanges()的單一呼叫所傳回的變更數量。

變更記錄檔中記錄的變更總數可能非常大,根據查詢的範圍。擷取所有的變更,在單一往返會置於網路和伺服器資源的不必要地高的要求。基於效能考量,變更會傳回的預設大小為CountLimit的變更有限的大小批次。

如果您想記錄在記錄中的所有變更,則您的程式碼應該在直到它會傳回具有少於CountLimit變更集合呼叫GetChanges方法在迴圈中。您可以使用從第一批次的最後變更的SPChangeToken來取得第二個批次,依此類推直到您取得與少於CountLimit變更批次。

請參閱

參照

SPChangeCollection class

SPChangeCollection members

Microsoft.SharePoint namespace

FetchLimit

GetChanges()

其他資源

Using the Change Log