GetUnderlyingObject Method

Principal.GetUnderlyingObject Method ()

 

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>]
member GetUnderlyingObject : unit -> 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:
© 2016 Microsoft