Share via


RuntimeEnvironment.GetRuntimeDirectory Método

Definição

Retorna o diretório no qual o Common Language Runtime está instalado.

public:
 static System::String ^ GetRuntimeDirectory();
public static string GetRuntimeDirectory ();
static member GetRuntimeDirectory : unit -> string
Public Shared Function GetRuntimeDirectory () As String

Retornos

Uma cadeia de caracteres que contém o caminho para o diretório no qual o Common Language Runtime está instalado.

Exemplos

O exemplo a seguir demonstra como chamar o GetRuntimeDirectory método . Este exemplo de código faz parte de um exemplo maior fornecido para a RuntimeEnvironment classe .

// Show the path where the CLR was loaded from.
Console::WriteLine("Runtime directory: {0}",
    RuntimeEnvironment::GetRuntimeDirectory());
// Show the path where the CLR was loaded from.
Console.WriteLine("Runtime directory: {0}", RuntimeEnvironment.GetRuntimeDirectory());
' Show the path where the CLR was loaded from.
Console.WriteLine("Runtime directory: {0}", RuntimeEnvironment.GetRuntimeDirectory())

Aplica-se a