RuntimeEnvironment.GetSystemVersion 方法

定義

取得執行目前進程之 Common Language Runtime 的版本號碼。

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

傳回

含有 Common Language Runtime 的版本號碼的字串。

備註

在 .NET 8 和更新版本上,這個方法會傳回 vVersion串連的 ,這是 CLR 的版本。 例如:v8.0.0

在 .NET 7 和舊版上,這個方法會傳 ImageRuntimeVersion回 ,例如 v4.0.30319

適用於