This documentation is archived and is not being maintained.

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
public bool CacheResults {get; set;}
public: __property bool get_CacheResults();
public: __property void set_CacheResults(bool);
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.


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


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