Export (0) Print
Expand All

DirectorySearcher Constructor

.NET Framework 1.1

Initializes a new instance of the DirectorySearcher class.

Overload List

Initializes a new instance of the DirectorySearcher class with SearchRoot, Filter, PropertiesToLoad, and SearchScope set to the default values.

[Visual Basic] Public Sub New()
[C#] public DirectorySearcher();
[C++] public: DirectorySearcher();
[JScript] public function DirectorySearcher();

Initializes a new instance of the DirectorySearcher class with Filter, PropertiesToLoad, and SearchScope set to the default values. SearchRoot is set to the specified value.

[Visual Basic] Public Sub New(DirectoryEntry)
[C#] public DirectorySearcher(DirectoryEntry);
[C++] public: DirectorySearcher(DirectoryEntry*);
[JScript] public function DirectorySearcher(DirectoryEntry);

Initializes a new instance of the DirectorySearcher class with SearchRoot, PropertiesToLoad, and SearchScope set to the default values. Filter is set to the specified value.

[Visual Basic] Public Sub New(String)
[C#] public DirectorySearcher(string);
[C++] public: DirectorySearcher(String*);
[JScript] public function DirectorySearcher(String);

Initializes a new instance of the DirectorySearcher class with PropertiesToLoad and SearchScope set to the default values. SearchRoot and Filter are set to the specified values.

[Visual Basic] Public Sub New(DirectoryEntry, String)
[C#] public DirectorySearcher(DirectoryEntry, string);
[C++] public: DirectorySearcher(DirectoryEntry*, String*);
[JScript] public function DirectorySearcher(DirectoryEntry, String);

Initializes a new instance of the DirectorySearcher class with SearchRoot and SearchScope set to the default values. Filter and PropertiesToLoad are set to the specified values.

[Visual Basic] Public Sub New(String, String())
[C#] public DirectorySearcher(string, string[]);
[C++] public: DirectorySearcher(String*, String*[]);
[JScript] public function DirectorySearcher(String, String[]);

Initializes a new instance of the DirectorySearcher class with SearchScope set to its default value. SearchRoot, Filter, and PropertiesToLoad are set to the specified values.

[Visual Basic] Public Sub New(DirectoryEntry, String, String())
[C#] public DirectorySearcher(DirectoryEntry, string, string[]);
[C++] public: DirectorySearcher(DirectoryEntry*, String*, String[]);
[JScript] public function DirectorySearcher(DirectoryEntry, String, String[]);

Initializes a new instance of the DirectorySearcher class with SearchRoot set to its default value. Filter, PropertiesToLoad, and SearchScope are set to the specified values.

[Visual Basic] Public Sub New(String, String(), SearchScope)
[C#] public DirectorySearcher(string, string[], SearchScope);
[C++] public: DirectorySearcher(String*, String*[], SearchScope);
[JScript] public function DirectorySearcher(String, String[], SearchScope);

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(DirectoryEntry, String, String(), SearchScope)
[C#] public DirectorySearcher(DirectoryEntry, string, string[], SearchScope);
[C++] public: DirectorySearcher(DirectoryEntry*, String*, String[], SearchScope);
[JScript] public function DirectorySearcher(DirectoryEntry, String, String[], SearchScope);

See Also

DirectorySearcher Class | DirectorySearcher Members | System.DirectoryServices Namespace

Show:
© 2014 Microsoft