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 每次呼叫物件時都會建立新的列舉值物件。

適用於