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.Forest
Public Shared Function GetCurrentForest () As Forest
返回
一个 Forest 表示当前林的对象。
例外
对基础目录服务的调用导致错误。