ApplicationPartition.FindDirectoryServer Method (String)

 

Returns a DirectoryServer object for the application partition and a specified site.

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

Public Function FindDirectoryServer (
	siteName As String
) As DirectoryServer

Parameters

siteName
Type: System.String

A String that specifies a site name.

Return Value

Type: System.DirectoryServices.ActiveDirectory.DirectoryServer

A DirectoryServer object for this application partition and specified site.

Exception Condition
ArgumentException

siteName is an empty string.

ArgumentNullException

siteName is null.

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: