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

适用于

另请参阅