Forest.RaiseForestFunctionality(ForestMode) 方法

定義

提高樹系的作業模式。

public:
 void RaiseForestFunctionality(System::DirectoryServices::ActiveDirectory::ForestMode forestMode);
public void RaiseForestFunctionality (System.DirectoryServices.ActiveDirectory.ForestMode forestMode);
member this.RaiseForestFunctionality : System.DirectoryServices.ActiveDirectory.ForestMode -> unit
Public Sub RaiseForestFunctionality (forestMode As ForestMode)

參數

forestMode
ForestMode

ForestMode 列舉值,可指定此樹系的新作業層級。

例外狀況

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

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

根據此樹系目前的作業模式,為 forestMode 指定的值無效。

forestMode 不是有效的 ForestMode 列舉值。

物件已被處置。

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

備註

ForestMode可以引發值,但無法降低。 這表示無法回復提高樹系的功能層級,而且應該謹慎做出執行此動作的決策。

如需樹系作業模式的詳細資訊,請參閱 網域和樹系功能

下表根據樹系的目前作業模式,定義的有效值 forestMode

目前模式 模式可以引發至
Windows2000Forest Windows2003InterimForest

Windows2003Forest
Windows2003InterimForest Windows2003Forest
Windows2003Forest None

適用於

另請參閱