DirectoryEntry::Parent Property
.NET Framework (current version)
Gets this entry's parent in the Active Directory Domain Services hierarchy.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
public: [BrowsableAttribute(false)] [DSDescriptionAttribute("DSParent")] property DirectoryEntry^ Parent { DirectoryEntry^ get(); }
Property Value
Type: System.DirectoryServices::DirectoryEntry^A DirectoryEntry object that represents the parent of this entry.
The following example searches a given DirectoryEntry and displays the Name and Parent of the result.
DirectoryServicesPermission
To get the parent.
.NET Framework
Available since 1.1
Available since 1.1
Show: