RuntimeEnvironment.GetRuntimeDirectory Método

Definição

Retorna o diretório em que 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 em que o common language runtime está instalado.

Exemplos

O exemplo a seguir demonstra a chamada do método GetRuntimeDirectory. 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