Forest.GetCurrentForest Yöntem

Tanım

Geçerli kullanıcı bağlamı için bir Forest nesne alır.

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

Döndürülenler

Forest Geçerli ormanı temsil eden bir nesne.

Özel durumlar

Temel dizin hizmetine yapılan bir çağrı bir hatayla sonuçlandı.

Şunlara uygulanır