RuntimeEnvironment.GetRuntimeDirectory Yöntem

Tanım

Ortak dil çalışma zamanının yüklü olduğu dizini döndürür.

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

Döndürülenler

Ortak dil çalışma zamanının yüklü olduğu dizinin yolunu içeren bir dize.

Örnekler

Aşağıdaki örnekte GetRuntimeDirectory yönteminin çağrılması gösterilmektedir. Bu kod örneği, sınıfı için RuntimeEnvironment sağlanan daha büyük bir örneğin parçasıdır.

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

Şunlara uygulanır