Forest.SetSelectiveAuthenticationStatus(String, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
启用或禁用入站信任的选择性身份验证。
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)
参数
- enable
- Boolean
true 如果要启用选择性身份验证,则为否则,为 false.
例外
没有与林 targetForestName指定的信任关系。
对基础目录服务的调用导致错误。
目标服务器是忙碌的或不可用的。
targetForestName 是空字符串。
targetForestName 是 null。
已释放当前对象。
指定的帐户无权执行此操作。