Principal.GetUnderlyingObject Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns the underlying DirectoryEntry object that provides the contact data for the principal object.

Namespace:   System.DirectoryServices.AccountManagement
Assembly:  System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)

public object GetUnderlyingObject()

Return Value

Type: System.Object

The underlying DirectoryEntry object.

Exception Condition

The current principal has not been persisted and does not have an associated DirectoryEntry object.

.NET Framework
Available since 3.5

Principal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top