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

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

Příklady

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

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