Gets or sets the maximum number of objects the server returns in a search.
[Visual Basic] Public Property SizeLimit As Integer [C#] public int SizeLimit {get; set;} [C++] public: __property int get_SizeLimit(); public: __property void set_SizeLimit(int); [JScript] public function get SizeLimit() : int; public function set SizeLimit(int);
The maximum number of objects the server returns in a search. The default of zero means to use the server-determined default size limit of 1000 entries.
| Exception Type | Condition |
|---|---|
| ArgumentException | SizeLimit is less than zero. |
The server stops searching after the size limit is reached and returns the results accumulated up to that point.
Note If you set SizeLimit to a value that is larger than the server-determined default of 1000 entries, the server-determined default is used.
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:
DirectorySearcher Class | DirectorySearcher Members | System.DirectoryServices Namespace