Forest.GetCurrentForest Método

Definição

Obtém um Forest objeto para o contexto atual do utilizador.

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

Devoluções

Um Forest objeto que representa a floresta atual.

Exceções

Uma chamada ao serviço de diretório subjacente resultava num erro.

Aplica-se a