This documentation is archived and is not being maintained.

DirectoryEntry.Children Property

Gets a DirectoryEntries containing the child entries of this node in the Active Directory hierarchy.

[Visual Basic]
Public ReadOnly Property Children As DirectoryEntries
[C#]
public DirectoryEntries Children {get;}
[C++]
public: __property DirectoryEntries* get_Children();
[JScript]
public function get Children() : DirectoryEntries;

Property Value

A DirectoryEntries containing the child entries of this node in the Active Directory hierarchy.

Remarks

The child entries are only the immediate children of this node.

Use this property to find, retrieve, or create a directory entry in the hierarchy. This property is a collection that, along with usual iteration capabilities, provides an Add method through which you add a node to the collection directly below the parent node that you are currently bound to. When adding a node to the collection, you must specify a name for the new node and the name of a schema template that you want to associate with the node. For example, you might want to use a schema titled "Computer" to add new computers to the hierarchy.

Note   By default, changes are made locally to a cache. After you modify or add a node, you must call the CommitChanges method to commit your changes in order for them to be saved to the tree. If you call RefreshCache before calling CommitChanges, any uncommitted changes to the property cache will be lost. For more information, see the CommitChanges and RefreshCache methods, and the UsePropertyCache property.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

DirectoryEntry Class | DirectoryEntry Members | System.DirectoryServices Namespace | DirectoryEntries

Show: