Forest.RaiseForestFunctionality(ForestMode) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提升了森林的運作模式。
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 |