ApplicationPartition.FindAllDirectoryServers Method (String)

 

Returns an ReadOnlyDirectoryServerCollection object that contains all of the directory servers that host this application partition in the specified site.

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

public ReadOnlyDirectoryServerCollection FindAllDirectoryServers(
	string siteName
)

Parameters

siteName
Type: System.String

A String that specifies the name of the site to search.

Return Value

Type: System.DirectoryServices.ActiveDirectory.ReadOnlyDirectoryServerCollection

An ReadOnlyDirectoryServerCollection object that contains the directory servers that host this application partition in the specified site.

Exception Condition
ArgumentNullException

siteName is null.

ArgumentException

siteName is an empty string.

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: