Initializes a new instance of the DirectorySearcher class with the SearchRoot, Filter, PropertiesToLoad, and SearchScope properties set to the specified values.
[Visual Basic] Public Sub New( _ ByVal searchRoot As DirectoryEntry, _ ByVal filter As String, _ ByVal propertiesToLoad() As String, _ ByVal scope As SearchScope _ ) [C#] public DirectorySearcher( DirectoryEntry searchRoot, string filter, string[] propertiesToLoad, SearchScope scope ); [C++] public: DirectorySearcher( DirectoryEntry* searchRoot, String* filter, String* propertiesToLoad __gc[], SearchScope scope ); [JScript] public function DirectorySearcher( searchRoot : DirectoryEntry, filter : String, propertiesToLoad : String[], scope : SearchScope );
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 | DirectorySearcher Constructor Overload List | DirectoryEntry | Filter | PropertiesToLoad | DirectorySearcher.SearchScope | SearchScope | SearchRoot