RuntimeEnvironment.GetRuntimeDirectory Metoda

Definice

Vrátí adresář, ve kterém je nainstalovaný modul CLR (Common Language Runtime).

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

Návraty

String

Řetězec, který obsahuje cestu k adresáři, ve kterém je nainstalovaný modul CLR (Common Language Runtime).

Příklady

Následující příklad ukazuje volání GetRuntimeDirectory metody. Tento příklad kódu je součástí většího příkladu poskytnutého RuntimeEnvironment pro třídu.

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

Platí pro