SearchRequest Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The SearchRequest() constructor creates an instance of the SearchRequest class.
Overloads
SearchRequest() |
The SearchRequest() constructor creates an instance of the SearchRequest class. This constructor creates an empty request. |
SearchRequest(String, String, SearchScope, String[]) |
The SearchRequest(String, String, SearchScope, String[]) constructor creates an instance of the SearchRequest class using the specified name, search filter, scope, and attributes. |
SearchRequest(String, XmlDocument, SearchScope, String[]) |
The SearchRequest(String, XmlDocument, SearchScope, String[]) constructor creates an instance of the SearchRequest class using the specified name, search filter, scope, and attributes. |
SearchRequest()
- Source:
- DirectoryRequest.cs
- Source:
- DirectoryRequest.cs
The SearchRequest() constructor creates an instance of the SearchRequest class. This constructor creates an empty request.
public:
SearchRequest();
public SearchRequest ();
Public Sub New ()
Applies to
SearchRequest(String, String, SearchScope, String[])
- Source:
- DirectoryRequest.cs
- Source:
- DirectoryRequest.cs
The SearchRequest(String, String, SearchScope, String[]) constructor creates an instance of the SearchRequest class using the specified name, search filter, scope, and attributes.
public:
SearchRequest(System::String ^ distinguishedName, System::String ^ ldapFilter, System::DirectoryServices::Protocols::SearchScope searchScope, ... cli::array <System::String ^> ^ attributeList);
public SearchRequest (string distinguishedName, string ldapFilter, System.DirectoryServices.Protocols.SearchScope searchScope, params string[] attributeList);
new System.DirectoryServices.Protocols.SearchRequest : string * string * System.DirectoryServices.Protocols.SearchScope * string[] -> System.DirectoryServices.Protocols.SearchRequest
Public Sub New (distinguishedName As String, ldapFilter As String, searchScope As SearchScope, ParamArray attributeList As String())
Parameters
- distinguishedName
- String
The distinguished name of the object at which to start the search.
- ldapFilter
- String
An LDAP search filter.
- searchScope
- SearchScope
One of the values of SearchScope that specifies the search scope.
- attributeList
- String[]
An array that contains the requested attributes in the result set.
Applies to
SearchRequest(String, XmlDocument, SearchScope, String[])
The SearchRequest(String, XmlDocument, SearchScope, String[]) constructor creates an instance of the SearchRequest class using the specified name, search filter, scope, and attributes.
public:
SearchRequest(System::String ^ distinguishedName, System::Xml::XmlDocument ^ filter, System::DirectoryServices::Protocols::SearchScope searchScope, ... cli::array <System::String ^> ^ attributeList);
public SearchRequest (string distinguishedName, System.Xml.XmlDocument filter, System.DirectoryServices.Protocols.SearchScope searchScope, params string[] attributeList);
new System.DirectoryServices.Protocols.SearchRequest : string * System.Xml.XmlDocument * System.DirectoryServices.Protocols.SearchScope * string[] -> System.DirectoryServices.Protocols.SearchRequest
Public Sub New (distinguishedName As String, filter As XmlDocument, searchScope As SearchScope, ParamArray attributeList As String())
Parameters
- distinguishedName
- String
The distinguished name of the object for which to search.
- filter
- XmlDocument
A DSML v2 search filter.
- searchScope
- SearchScope
A SearchScope value that specifies the search scope. The default value is SearchScope.
- attributeList
- String[]
An array that contains the requested attributes in the result set.