ConfigurationSet.FindAdamInstance Method (String)

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

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

public AdamInstance FindAdamInstance (
	string partitionName
public AdamInstance FindAdamInstance (
	String partitionName
public function FindAdamInstance (
	partitionName : String
) : AdamInstance
Not applicable.



A String that specifies a partition in which to search.

Return Value

An AdamInstance object that represents an ADAM instance that was found.

Exception typeCondition


partitionName is a null reference (Nothing in Visual Basic).


The object has been disposed.


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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0