RuntimeEnvironment.GetSystemVersion 方法
定義
取得正在目前處理序中執行的 Common Language Runtime 的版本號碼。Gets the version number of the common language runtime that is running the current process.
public:
static System::String ^ GetSystemVersion();
public static string GetSystemVersion ();
static member GetSystemVersion : unit -> string
Public Shared Function GetSystemVersion () As String
傳回
含有 Common Language Runtime 的版本號碼的字串。A string containing the version number of the common language runtime.
範例
下列程式碼範例示範如何呼叫 GetSystemVersion 方法。The following example demonstrates calling the GetSystemVersion method. 這個程式碼範例是針對類別提供之較大範例的一部分 RuntimeEnvironment 。This code example is part of a larger example provided for the RuntimeEnvironment class.
// Show the CLR's version number.
Console::WriteLine("System version: {0}",
RuntimeEnvironment::GetSystemVersion());
// Show the CLR's version number.
Console.WriteLine("System version: {0}", RuntimeEnvironment.GetSystemVersion());
' Show the CLR's version number.
Console.WriteLine("System version: {0}", RuntimeEnvironment.GetSystemVersion())