Forest.GetCurrentForest 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取当前用户上下文的 Forest 对象。
public:
 static System::DirectoryServices::ActiveDirectory::Forest ^ GetCurrentForest();public static System.DirectoryServices.ActiveDirectory.Forest GetCurrentForest ();static member GetCurrentForest : unit -> System.DirectoryServices.ActiveDirectory.ForestPublic Shared Function GetCurrentForest () As Forest返回
一个表示当前目录林的 Forest 对象。
例外
调用基础目录服务导致错误。