RuntimeEnvironment.GetRuntimeDirectory Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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())