RuntimeEnvironment.GetSystemVersion 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得執行當前程序的通用語言執行時的版本號。
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