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 物件。
例外狀況
呼叫基礎目錄服務時,發生錯誤。