RuntimeEnvironment.GetRuntimeDirectory メソッド

定義

共通言語ランタイムがインストールされているディレクトリを返します。

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

戻り値

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

適用対象