Share via


Forest.GetCurrentForest Méthode

Définition

Obtient un objet Forest pour le contexte utilisateur actuel.

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

Retours

Objet Forest qui représente la forêt actuelle.

Exceptions

Un appel au service d'annuaire sous-jacent a échoué.

S’applique à