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。
目前的物體已被處理。
指定的帳號沒有執行此操作的權限。