ApplicationPartition.FindDirectoryServer Method ()

 

Returns a DirectoryServer object for this application partition and current site.

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

public DirectoryServer FindDirectoryServer()

Return Value

Type: System.DirectoryServices.ActiveDirectory.DirectoryServer

A DirectoryServer object for this application partition and site.

Exception Condition
InvalidOperationException

The ApplicationPartition object has not yet been committed to the underlying directory store.

ObjectDisposedException

The object has been disposed.

.NET Framework
Available since 2.0
Return to top
Show: