Returns the directory entry for the user from Active Directory.


DirectoryEntry GetDirectoryEntry()

Return value

A directory entry for the service connection point that represents the user’s Windows profile.


The DirectoryEntry object represents the directory object for the user and its associated attributes.

Note:   This method can only be used in .NET programs because DirectoryEntry is a .NET‑specific class for directory objects. This method cannot be used in COM-based programs.


GetDirectoryEntry throws an ApplicationException if it cannot get the directory object.