Muokkaa

Jaa


AdamInstance.FindAll(DirectoryContext, String) Method

Definition

Finds all AD LDS instances in the specified context that host the specified partition.

public:
 static System::DirectoryServices::ActiveDirectory::AdamInstanceCollection ^ FindAll(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ partitionName);
public static System.DirectoryServices.ActiveDirectory.AdamInstanceCollection FindAll (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string partitionName);
static member FindAll : System.DirectoryServices.ActiveDirectory.DirectoryContext * string -> System.DirectoryServices.ActiveDirectory.AdamInstanceCollection
Public Shared Function FindAll (context As DirectoryContext, partitionName As String) As AdamInstanceCollection

Parameters

context
DirectoryContext

A DirectoryContext object that contains the target and credentials to use for the search. The target of this context must be an AD LDS configuration set.

partitionName
String

A String that contains the name of the partition to search for AD LDS instances.

Returns

A AdamInstanceCollection that contains the AD LDS instances that are found by the search.

Exceptions

The context or partitionName parameter is not valid.

The context or partitionName parameter is null.

No AD LDS instance was found.

Applies to

See also