RuntimeEnvironment.GetRuntimeDirectory Метод

Определение

Возвращает каталог, в котором установлена среда CLR.

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

Возвращаемое значение

Строка, содержащая путь к каталогу, в котором установлена среда CLR.

Примеры

В следующем примере показано вызов метода GetRuntimeDirectory. Этот пример кода является частью более крупного примера, предоставленного для 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())

Применяется к