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);
Property Value
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.
Exceptions
Remarks
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.
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:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
DirectorySearcher Class | DirectorySearcher Members | System.DirectoryServices Namespace