語言

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 是空字串。

targetForestName 是 null。

目前的物體已被處理。

指定的帳號沒有執行此操作的權限。

適用於

另請參閱