This documentation is archived and is not being maintained.

DirectorySearcher Constructor

Initializes a new instance of the DirectorySearcher class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method DirectorySearcher() Initializes a new instance of the DirectorySearcher class with default values.
Public method DirectorySearcher(DirectoryEntry) Initializes a new instance of the DirectorySearcher class using the specified search root.
Public method DirectorySearcher(String) Initializes a new instance of the DirectorySearcher class with the specified search filter.
Public method DirectorySearcher(DirectoryEntry, String) Initializes a new instance of the DirectorySearcher class with the specified search root and search filter.
Public method DirectorySearcher(String, array<String>) Initializes a new instance of the DirectorySearcher class with the specified search filter and properties to retrieve.
Public method DirectorySearcher(DirectoryEntry, String, array<String>) Initializes a new instance of the DirectorySearcher class with the specified search root, search filter, and properties to retrieve..
Public method DirectorySearcher(String, array<String>, SearchScope) Initializes a new instance of the DirectorySearcher class with the specified search filter, properties to retrieve, and search scope.
Public method DirectorySearcher(DirectoryEntry, String, array<String>, SearchScope) Initializes a new instance of the DirectorySearcher class with the specified search root, search filter, properties to retrieve, and search scope.
Top
Show: