Redigera

Dela via


AdamInstance.FindOne(DirectoryContext, String) Method

Definition

Finds a single AD LDS instance in the specified context that hosts the specified partition.

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

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 an AD LDS instance.

Returns

A AdamInstance object that represents the AD LDS instance that is found by the search.

Exceptions

No AD LDS instance was found.

The context or partitionName parameter is not valid.

The context or partitionName parameter is null.

Applies to

See also