ActiveDirectorySite.GetDirectoryEntry Method ()

 

Gets the DirectoryEntry object for this site.

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

public DirectoryEntry GetDirectoryEntry()

Return Value

Type: System.DirectoryServices.DirectoryEntry

The DirectoryEntry object for this site.

Exception Condition
InvalidOperationException

The ActiveDirectorySite object has not yet been saved in the Active Directory Domain Services store.

ObjectDisposedException

The object has been disposed.

.NET Framework
Available since 2.0
Return to top
Show: