TCnDirectorySearcher Class

Performs queries against Active Directory Domain Services.

Namespace: CNClrLib.Component.DirectorySearcher
TComponent
  CNClrLib.Control.Base.TClrBaseComponent
    CNClrLib.Component.DirectorySearcher.TCnDirectorySearcher
type
 TCnDirectorySearcher = class(TClrBaseComponent)
 end;

The TCnDirectorySearcher type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates and initializes a TCnDirectoryEntry instance. (Overrides TClrBaseComponent.Create(TComponent).)

Destroy

Frees the resources allocated with a TCnDirectorySearcher instance. (Overrides TClrBaseComponent.Destroy.)

Top
Show:
 NameDescription
Asynchronous

Gets or sets a value that indicates if the search is performed asynchronously.

AttributeScopeQuery

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.

CacheResults

Gets or sets a value indicating whether the result is cached on the client computer.

ClientTimeout

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.

DefaultClrObject

Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.)

DerefAlias

Gets or sets a value indicating how the aliases of objects that are found during a search should be resolved.

DirectorySearcher

Represents property DirectorySearcher.

DirectorySynchronization

Gets or sets an object that represents the directory synchronization control to use with the search.

ExtendedDN

Gets or sets a value that indicates the format of the distinguished names.

Filter

Gets or sets a value indicating the Lightweight Directory Access Protocol (LDAP) format filter string.

PageSize

Gets or sets a value indicating the page size in a paged search.

PropertiesToLoad

Gets a value indicating the list of properties to retrieve during the search.

PropertiesToLoadIntf

Gets a value indicating the list of properties to retrieve during the search.

PropertyNamesOnly

Gets or sets a value indicating whether the search retrieves only the names of attributes to which values have been assigned.

ReferralChasing

Gets or sets a value indicating how referrals are chased.

SearchRoot

Gets or sets a value indicating the node in the Active Directory Domain Services hierarchy where the search starts.

SearchScope

Gets or sets a value indicating the scope of the search that is observed by the server.

SecurityMasks

Gets or sets a value indicating which security access information for the specified attributes should be returned by the search.

ServerPageTimeLimit

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.

ServerTimeLimit

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.

SizeLimit

Gets or sets a value indicating the maximum number of objects that the server returns in a search.

Sort

Gets or sets a value indicating the property on which the results are sorted.

Tombstone

Gets or sets a value indicating whether the search should also return deleted objects that match the search filter.

VirtualListView

Gets or sets a value indicating the virtual list view options for the search.

Top
Show:
 NameDescription
Dispose

Releases the resources used by the Component. (Inherited from TClrBaseComponent.)

DoGetDefaultClrObject

Represents method DoGetDefaultClrObject. (Inherited from TClrBaseComponent.)

DoGetDotNetBaseComponent

Represents method DoGetDotNetBaseComponent. (Overrides TClrBaseComponent.DoGetDotNetBaseComponent.)

DoOnPropertiesToLoadChange(TObject)

Represents method DoOnPropertiesToLoadChange(TObject).

DoOnSortOptionChange(TObject)

Represents method DoOnSortOptionChange(TObject).

FindAll

Executes the search and returns a collection of the entries that are found.

FindOne

Executes the search and returns only the first entry that is found.

GetClrObject

Represents method GetClrObject. (Inherited from TClrBaseComponent.)

Notification(TComponent,TOperation)

Represents method Notification(TComponent,TOperation).

RegisterEventCallBack(ClrWString,Pointer)

Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.)

RegisterEventSource

Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.)

UnRegisterEventCallBack(ClrWString,Pointer)

Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.)

UnRegisterEventSource

Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.)

Top

See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.