TCnDirectoryEntry Class

The TCnDirectoryEntry class encapsulates a node or object in the Active Directory Domain Services hierarchy.

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

The TCnDirectoryEntry 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 TCnDirectoryEntry instance. (Overrides TClrBaseComponent.Destroy.)

Top
Show:
 NameDescription
AuthenticationType

Gets or sets the type of authentication to use.

Children

Gets the child entries of this node in the Active Directory Domain Services hierarchy.

DefaultClrObject

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

DirectoryEntry

Provides direct access to the .Net DirectoryEntry object as interface.

Guid

Gets the GUID of the DirectoryEntry.

Name

Gets the name of the object as named with the underlying directory service.

NativeGuid

Gets the GUID of the DirectoryEntry, as returned from the provider.

NativeObject

Gets the native Active Directory Service Interfaces (ADSI) object.

ObjectSecurity

Gets or sets the security descriptor for this entry.

Options

Gets the provider-specific options for this entry.

Parent

Gets this entry's parent in the Active Directory Domain Services hierarchy.

Password

Sets the password to use when authenticating the client.

Path

Gets or sets the path for this DirectoryEntry.

Properties

Gets the Active Directory Domain Services properties for this DirectoryEntry object.

SchemaClassName

Gets the name of the schema class for this DirectoryEntry object.

SchemaEntry

Gets the schema object for this entry.

UsePropertyCache

Gets or sets a value indicating whether the cache should be committed after each operation.

Username

Gets or sets the user name to use when authenticating the client.

Top
Show:
 NameDescription
Close

Closes the DirectoryEntry object and releases any system resources that are associated with this component.

CommitChanges

Saves changes that are made to a directory entry to the underlying directory store.

CopyTo(TCnDirectoryEntry)

Overloaded. Creates a copy of this entry.

CopyTo(TCnDirectoryEntry,String)

Overloaded. Creates a copy of this entry.

DeleteTree

Deletes this entry and its entire subtree from the Active Directory Domain Services hierarchy.

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.)

GetClrObject

Represents method GetClrObject. (Inherited from TClrBaseComponent.)

Invoke(String,OleVariant[])

Overloaded. Calls a method on the native Active Directory Domain Services object.

Invoke(String,_ObjectArray)

Overloaded. Calls a method on the native Active Directory Domain Services object.

InvokeGet(String)

Gets a property from the native Active Directory Domain Services object.

InvokeSet(String,OleVariant[])

Overloaded. Sets a property on the native Active Directory Domain Services object.

InvokeSet(String,_ObjectArray)

Overloaded. Sets a property on the native Active Directory Domain Services object.

MoveTo(TCnDirectoryEntry)

Overloaded. Moves this DirectoryEntry.

MoveTo(TCnDirectoryEntry,String)

Overloaded. Moves this DirectoryEntry.

RefreshCache

Overloaded. Loads the property values for this DirectoryEntry object into the property cache.

RefreshCache(TArray)

Overloaded. Loads the property values for this DirectoryEntry object into the property cache.

RefreshCache(_StringArray)

Overloaded. Loads the property values for this DirectoryEntry object into the property cache.

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.)

Rename(String)

Changes the name of this DirectoryEntry object.

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.