ConfigurationSet.FindAdamInstance 方法

定义

重载

FindAdamInstance()

在此配置集中找到一个 AD LDS 实例。Finds an AD LDS instance in this configuration set.

FindAdamInstance(String)

在此配置集中查找针对给定分区名称的 AD LDS 实例。Finds an AD LDS instance in this configuration set for a given partition name.

FindAdamInstance(String, String)

在此配置集内查找具有给定分区名称和站点名称的 AD LDS 实例。Finds an AD LDS instance in this configuration set for a given partition name and site name.

FindAdamInstance()

在此配置集中找到一个 AD LDS 实例。Finds an AD LDS instance in this configuration set.

public:
 System::DirectoryServices::ActiveDirectory::AdamInstance ^ FindAdamInstance();
public System.DirectoryServices.ActiveDirectory.AdamInstance FindAdamInstance ();
member this.FindAdamInstance : unit -> System.DirectoryServices.ActiveDirectory.AdamInstance
Public Function FindAdamInstance () As AdamInstance

返回

一个 AdamInstance 对象,表示找到的 AD LDS 实例。An AdamInstance object that represents an AD LDS instance that was found.

异常

已释放此对象。The object has been disposed.

在此配置集无法找到的 AD LDS 实例。An AD LDS instance could be not found in this configuration set.

另请参阅

FindAdamInstance(String)

在此配置集中查找针对给定分区名称的 AD LDS 实例。Finds an AD LDS instance in this configuration set for a given partition name.

public:
 System::DirectoryServices::ActiveDirectory::AdamInstance ^ FindAdamInstance(System::String ^ partitionName);
public System.DirectoryServices.ActiveDirectory.AdamInstance FindAdamInstance (string partitionName);
member this.FindAdamInstance : string -> System.DirectoryServices.ActiveDirectory.AdamInstance
Public Function FindAdamInstance (partitionName As String) As AdamInstance

参数

partitionName
String

指定要搜索的分区的 StringA String that specifies a partition in which to search.

返回

一个 AdamInstance 对象,表示找到的 AD LDS 实例。An AdamInstance object that represents an AD LDS instance that was found.

异常

partitionNamenullpartitionName is null.

已释放此对象。The object has been disposed.

在此配置集中未能找到指定 partitionName 的 AD LDS 实例。An AD LDS instance for the specified partitionName could not be found in this configuration set.

另请参阅

FindAdamInstance(String, String)

在此配置集内查找具有给定分区名称和站点名称的 AD LDS 实例。Finds an AD LDS instance in this configuration set for a given partition name and site name.

public:
 System::DirectoryServices::ActiveDirectory::AdamInstance ^ FindAdamInstance(System::String ^ partitionName, System::String ^ siteName);
public System.DirectoryServices.ActiveDirectory.AdamInstance FindAdamInstance (string partitionName, string siteName);
member this.FindAdamInstance : string * string -> System.DirectoryServices.ActiveDirectory.AdamInstance
Public Function FindAdamInstance (partitionName As String, siteName As String) As AdamInstance

参数

partitionName
String

指定要搜索的分区的 StringA String that specifies a partition in which to search.

siteName
String

一个 String,用于指定要在其中进行搜索的站点。A String that specifies a site in which to search.

返回

一个 AdamInstance 对象,表示找到的 AD LDS 实例。An AdamInstance object that represents an AD LDS instance that was found.

异常

siteNamenullsiteName is null.

已释放此对象。The object has been disposed.

在此配置集中,未能找到指定 partitionNamesiteName 参数的 AD LDS 实例。An AD LDS instance for the specified partitionName and siteName parameters could not be found in this configuration set.

另请参阅

适用于