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

적용 대상