RuntimeEnvironment.GetRuntimeDirectory Metodo

Definizione

Restituisce la directory in cui è installato Common Language Runtime.

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

Restituisce

String

Stringa contenente il percorso della directory in cui è installato Common Language Runtime.

Esempio

Nel codice riportato di seguito viene illustrata la chiamata al metodo GetRuntimeDirectory. Questo esempio di codice fa parte di un esempio più ampio fornito per la 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())

Si applica a