SearchRequest Class

 

The SearchRequest class initiates a search operation.

Namespace:   System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)


public class SearchRequest : DirectoryRequest

NameDescription
System_CAPS_pubmethodSearchRequest()

The SearchRequest() constructor creates an instance of the SearchRequest class. This constructor creates an empty request.

System_CAPS_pubmethodSearchRequest(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.

System_CAPS_pubmethodSearchRequest(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.

NameDescription
System_CAPS_pubpropertyAliases

The Aliases property contains one of the values of DereferenceAlias that specifies the dereference alias behavior.

System_CAPS_pubpropertyAttributes

The Attributes property contains the attributes of the requested object.

System_CAPS_pubpropertyControls

The Controls property contains a DirectoryControlCollection object.(Inherited from DirectoryRequest.)

System_CAPS_pubpropertyDistinguishedName

The DistinguishedName property contains the distinguished name of the requested object.

System_CAPS_pubpropertyFilter

The Filter property contains the search filter.

System_CAPS_pubpropertyRequestId

The RequestId property contains the requestID specified in the request.(Inherited from DirectoryRequest.)

System_CAPS_pubpropertyScope

The Scope property contains one of the values of SearchScope that specifies the scope of the search.

System_CAPS_pubpropertySizeLimit

The SizeLimit property contains the maximum number of objects returned in the search request.

System_CAPS_pubpropertyTimeLimit

The TimeLimit property contains a TimeSpan object that specifies the time span allowed, if the server processes the search request.

System_CAPS_pubpropertyTypesOnly

The TypesOnly property specifies whether the search returns only the attribute names and not the attribute values.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodToXmlNode(XmlDocument)

The ToXmlNode method creates an XML node from the specified XmlDocument object.(Overrides DirectoryRequest.ToXmlNode(XmlDocument).)

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: