RuntimeEnvironment.GetRuntimeDirectory Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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())