共用方式為


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

傳入信任關係存在的 Forest 物件之 DNS 名稱。

enable
Boolean

如果要啟用選擇式驗證,則為 true,否則為 false

例外狀況

targetForestName 指定的樹系之間沒有信任關係。

呼叫基礎目錄服務時,發生錯誤。

目標伺服器忙碌或無法使用。

targetForestName 為空字串。

targetForestNamenull

目前的物件已經處置。

指定的帳戶沒有執行這項作業的權限。

適用於

另請參閱