Principal.GetUnderlyingObject Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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)

<SecurityCriticalAttribute>
Public Function GetUnderlyingObject As Object

Return Value

Type: System.Object

The underlying DirectoryEntry object.

Exception Condition
T:System.InvalidOperationExtension

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

.NET Framework
Available since 3.5

System.DirectoryServices.AccountManagement
Principal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top
Show: