AdamInstance.FindOne(DirectoryContext, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin