Share via


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üklendiği dizinin yolunu içeren bir dize.

Örnekler

Aşağıdaki örnekte yönteminin çağrılması gösterilmektedir GetRuntimeDirectory . 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