語言

DirectorySearcher.CacheResults 屬性

定義

取得或設定值,指出是否在用戶端計算機上快取結果。

public:
 property bool CacheResults { bool get(); void set(bool value); };
public bool CacheResults { get; set; }
[System.DirectoryServices.DSDescription("DSCacheResults")]
public bool CacheResults { get; set; }
member this.CacheResults : bool with get, set
[<System.DirectoryServices.DSDescription("DSCacheResults")>]
member this.CacheResults : bool with get, set
Public Property CacheResults As Boolean

屬性值

true如果結果被快取在用戶端電腦上;否則,。 false 預設值為 true。

屬性

備註

如果搜尋回傳的結果集很大,若設定此 false 特性以避免結果集傳送到用戶端電腦,搜尋效率會更高。 但如果你這麼做,就無法重複列舉結果,因為 SearchResultCollection 物件每次被呼叫都會建立一個新的列舉器物件。

適用於