Share via


DirectoryEntries

The DirectoryEntries class contains the children (child entries) of an entry in Active Directory.

The DirectoryEntries class is derived from the System.Object class.

Public Methods

The DirectoryEntries class has the following public methods.

Method Description
Add(String, String)

Creates a request to create a new entry in the container.

Equals(Object)

Overloaded. Determines whether the specified Object is equal to the current Object.

Find(String)

Overloaded. Returns the child with the specified name.

Find(String, String)

Overloaded. Returns the child with the specified name.

GetEnumerator()

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

GetHashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

GetType()

Gets the Type of the current instance.

Remove(DirectoryEntry)

Deletes a child DirectoryEntry from this collection.

ToString()

Returns a String that represents the current Object.

Public Properties

The DirectoryEntries class has the following public property.

Property Description
SchemaFilter Data type: SchemaNameCollection
Access type: Read-only

Gets the schemas that specify which children are contained in the collection.

Protected Methods

The DirectoryEntries class has the following protected methods.

Method Description
Finalize(Object)

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

MemberwiseClone(Object)

Creates a shallow copy of the current Object.

Thread Safety

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

Requirements

Client Requires Windows XP Home Edition, Windows XP Professional, Windows Me, or Windows 98.
Server Requires Windows Server 2003, Windows 2000, or Windows NT 4.0.
Namespace

Defined in System.DirectoryServices.

Assembly

Requires System.DirectoryServices (in System.DirectoryServices.dll).

.NET Framework

Requires .NET Framework 1.0.

See Also

DirectoryEntries Methods, DirectoryEntries Members (Visual J# Syntax), DirectoryEntry, DirectorySearcher, PropertyCollection, PropertyValueCollection, ReferralChasingOption, ResultPropertyCollection, ResultPropertyValueCollection, SearchScope, SearchResultCollection, SearchResult, SortDirection, SortOption, System.DirectoryServices Namespace, Managed Extensions for C++ Programming