ConfigurationSet.FindAdamInstance Method (String)

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

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

'Declaration
Public Function FindAdamInstance ( _
	partitionName As String _
) As AdamInstance

Parameters

partitionName
Type: System.String

A String that specifies a partition in which to search.

Return Value

Type: System.DirectoryServices.ActiveDirectory.AdamInstance
An AdamInstance object that represents an AD LDS instance that was found.

ExceptionCondition
ArgumentNullException

partitionName is Nothing.

ObjectDisposedException

The object has been disposed.

ActiveDirectoryObjectNotFoundException

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft