DirectorySearcher Constructor (String, String[])
.NET Framework 3.5
Initializes a new instance of the DirectorySearcher class with the specified search filter and properties to retrieve.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
Parameters
- filter
- Type: System.String
The search filter string in Lightweight Directory Access Protocol (LDAP) format. The Filter property is initialized to this value.
- propertiesToLoad
- Type: System.String[]
The set of properties to retrieve during the search. The PropertiesToLoad property is initialized to this value.
The following table shows the initial property values of the DirectorySearcher object.
|
Property |
Initial value |
|---|---|
|
A null reference (Nothing in Visual Basic) |
|
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.