Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CacheResults Property

DirectorySearcher.CacheResults Property

Gets or sets a value indicating whether the result is cached on the client computer.

[Visual Basic]
Public Property CacheResults As Boolean
[C#]
public bool CacheResults {get; set;}
[C++]
public: __property bool get_CacheResults();
public: __property void set_CacheResults(bool);
[JScript]
public function get CacheResults() : Boolean;
public function set CacheResults(Boolean);

Property Value

true if the result is cached on the client computer; otherwise, false. The default is true.

Remarks

If the search returns a large result set, it is better to set this property to false.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

DirectorySearcher Class | DirectorySearcher Members | System.DirectoryServices Namespace

Show:
© 2015 Microsoft