Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The FindAll method executes the search and returns a collection of the entries that are found.
public SearchResultCollection FindAll();
Public Function FindAll() As SearchResultCollection
Parameters
This method has no parameters.
Return Values
A SearchResultCollection collection of nodes from Active Directory.
Exceptions
| Exception type | Condition |
|---|---|
| InvalidOperationException | The specified DirectoryEntry is not a container. |
| NotSupportedException | Searching is not supported by the provider being used. |
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.
Requirements
| Client | Requires Windows XP Home Edition, Windows XP Professional, Windows Me, or Windows 98. |
| Server | Requires Windows Server 2003, Windows 2000, or Windows NT 4.0. |
| Namespace | Defined in System.DirectoryServices. |
| Assembly | Requires System.DirectoryServices (in System.DirectoryServices.dll). |
| .NET Framework | Requires .NET Framework 1.0. |
See Also
DirectorySearcher, DirectorySearcher Constructors, DirectorySearcher Methods, DirectorySearcher Properties, SearchResultCollection, System.DirectoryServices Namespace, DirectorySearcher Members (Visual J# Syntax), Managed Extensions for C++ Programming