NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DirectoryEntry Methods

The methods of the DirectoryEntry class are listed below. For a complete list of DirectoryEntry class members, see the DirectoryEntry Members topic.

Public:

Close Closes the DirectoryEntry and releases any system resources associated with this component.
CommitChanges Saves any changes to the entry in the directory store.
CopyTo Overloaded. Creates a copy of this entry as a child of the given parent.
DeleteTree Deletes this entry and its entire subtree from the Active Directory hierarchy.
Dispose Disposes of the resources (other than memory) used by the DirectoryEntry.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Exists Searches the directory store at the given path to see whether the entry exists and if it can be bound to.
GetContainer (inherited from Component) Returns the IContainer that contains the Component.
GetDesignMode (inherited from Component) Gets a value indicating whether the Component is currently in design mode.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetServiceObject (inherited from Component) Returns an object representing a service provided by the Component.
GetType (inherited from Object) Gets the Type of the Object.
Invoke Calls a method on the native Active Directory.
MoveTo Overloaded. Moves this entry to the given parent.
RefreshCache Overloaded. Loads the property values for this directory entry into the property cache.
Rename Changes the name of this entry.
ToString (inherited from Component) Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only.

Protected:

Finalize Frees all resources associated with the component.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

DirectoryEntry Class | System.DirectoryServices Namespace