RuntimeEnvironment.GetRuntimeDirectory Método

Definição

Devolve o diretório onde o runtime da linguagem comum está instalado.

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

Devoluções

Uma cadeia que contém o caminho para o diretório onde está instalado o runtime da linguagem comum.

Exemplos

O exemplo seguinte demonstra 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