RuntimeEnvironment.GetRuntimeDirectory Método

Definición

Devuelve el directorio donde se instala Common Language Runtime.

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

Devoluciones

Cadena que contiene la ruta de acceso al directorio donde está instalado Common Language Runtime.

Ejemplos

En el ejemplo siguiente se muestra cómo llamar al método GetRuntimeDirectory. Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la RuntimeEnvironment clase .

// 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())

Se aplica a