// Grab the OS Information.
// 輸出 目前電腦上安裝的作業系統的 Build, Major, Minor, and Revision 版本資訊
OperatingSystem OSVer=Environment.OSVersion;
MessageBox.Show("OS Version: " + OSVer.ToString(), "作業系統",
MessageBoxButtons.OK, MessageBoxIcon.Information);
// 輸出 目前電腦上安裝的作業系統的 Build, Major, Minor, and Revision 版本資訊
OperatingSystem OSVer=Environment.OSVersion;
MessageBox.Show("OS Version: " + OSVer.ToString(), "作業系統",
MessageBoxButtons.OK, MessageBoxIcon.Information);