Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 DirectorySearcher Members

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DirectorySearcher Members

Performs queries against Active Directory Domain Services.

The DirectorySearcher type exposes the following members.

  NameDescription
Public methodDirectorySearcherOverloaded. Initializes a new instance of the DirectorySearcher class.
Top
  NameDescription
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodDisposeOverloaded. Releases the managed resources that are used by the object.
Public methodEquals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodFindAll Executes the search and returns a collection of the entries that are found.
Public methodFindOne Executes the search and returns only the first entry that is found.
Public methodGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseCloneOverloaded.
Public methodToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Top
  NameDescription
Public propertyAsynchronous Gets or sets a value that indicates if the search is performed asynchronously.
Public propertyAttributeScopeQuery Gets or sets the LDAP display name of the distinguished name attribute to search in. Only one attribute can be used for this type of search.
Public propertyCacheResults Gets or sets a value indicating whether the result is cached on the client computer.
Protected propertyCanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyClientTimeout Gets or sets the maximum amount of time that the client waits for the server to return results. If the server does not respond within this time, the search is aborted and no results are returned.
Public propertyContainer Gets the IContainer that contains the Component. (Inherited from Component.)
Public propertyDerefAlias Gets or sets a value indicating how the aliases of objects that are found during a search should be resolved.
Protected propertyDesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public propertyDirectorySynchronization Gets or sets an object that represents the directory synchronization control to use with the search.
Protected propertyEvents Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertyExtendedDN Gets or sets a value that indicates the format of the distinguished names.
Public propertyFilter Gets or sets a value indicating the Lightweight Directory Access Protocol (LDAP) format filter string.
Public propertyPageSize Gets or sets a value indicating the page size in a paged search.
Public propertyPropertiesToLoad Gets a value indicating the list of properties to retrieve during the search.
Public propertyPropertyNamesOnly Gets or sets a value indicating whether the search retrieves only the names of attributes to which values have been assigned.
Public propertyReferralChasing Gets or sets a value indicating how referrals are chased.
Public propertySearchRoot Gets or sets a value indicating the node in the Active Directory Domain Services hierarchy where the search starts.
Public propertySearchScope Gets or sets a value indicating the scope of the search that is observed by the server.
Public propertySecurityMasks Gets or sets a value indicating which security access information for the specified attributes should be returned by the search.
Public propertyServerPageTimeLimit Gets or sets a value indicating the maximum amount of time the server should search for an individual page of results. This is not the same as the time limit for the entire search.
Public propertyServerTimeLimit The ServerTimeLimit property gets or sets a value indicating the maximum amount of time the server spends searching. If the time limit is reached, only entries that are found up to that point are returned.
Public propertySite Gets or sets the ISite of the Component. (Inherited from Component.)
Public propertySizeLimit Gets or sets a value indicating the maximum number of objects that the server returns in a search.
Public propertySort Gets or sets a value indicating the property on which the results are sorted.
Public propertyTombstone Gets or sets a value indicating whether the search should also return deleted objects that match the search filter.
Public propertyVirtualListView Gets or sets a value indicating the virtual list view options for the search.
Top
  NameDescription
Public eventDisposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker