语言

Forest.SetSelectiveAuthenticationStatus(String, Boolean) 方法

定义

启用或禁用入站信任的选择性身份验证。

public:
 void SetSelectiveAuthenticationStatus(System::String ^ targetForestName, bool enable);
public void SetSelectiveAuthenticationStatus(string targetForestName, bool enable);
member this.SetSelectiveAuthenticationStatus : string * bool -> unit
Public Sub SetSelectiveAuthenticationStatus (targetForestName As String, enable As Boolean)

参数

targetForestName
String

入站信任关系所在的对象的 DNS 名称 Forest 。

enable
Boolean

true 如果要启用选择性身份验证,则为否则,为 false.

例外

没有与林 targetForestName指定的信任关系。

对基础目录服务的调用导致错误。

目标服务器是忙碌的或不可用的。

targetForestName 是空字符串。

targetForestName 是 null。

已释放当前对象。

指定的帐户无权执行此操作。

适用于

另请参阅