ConfigurationSet.FindAdamInstance Method (String, String)

 

Finds an AD LDS instance in this configuration set for a given partition name and site name.

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

public AdamInstance FindAdamInstance(
	string partitionName,
	string siteName
)

Parameters

partitionName
Type: System.String

A String that specifies a partition in which to search.

siteName
Type: System.String

A String that specifies a site in which to search.

Return Value

Type: System.DirectoryServices.ActiveDirectory.AdamInstance

An AdamInstance object that represents an AD LDS instance that was found.

Exception Condition
ArgumentNullException

siteName is null.

ObjectDisposedException

The object has been disposed.

ActiveDirectoryObjectNotFoundException

An AD LDS instance for the specified partitionName and siteName parameters could not be found in this configuration set.

.NET Framework
Available since 2.0
Return to top
Show: