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 | 没有 |