共用方式為


RuntimeEnvironment.GetSystemVersion 方法

定義

取得執行當前程序的通用語言執行時的版本號。

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

傳回

包含共通語言執行時版本號的字串。

備註

在 .NET 8 及以上版本中,此方法會與 v 串接 Version回傳,該 是 CLR 的版本。 例如: v8.0.0

在 .NET Framework 中,此方法會回傳 ImageRuntimeVersion,例如。 v4.0.30319

適用於