RuntimeEnvironment.GetRuntimeDirectory 메서드

정의

공용 언어 런타임이 설치된 디렉터리를 반환합니다.

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

반환

공용 언어 런타임이 설치된 디렉터리 경로를 포함하는 문자열입니다.

예제

다음 예제에서는 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())

적용 대상