ComputerInfo.OSFullName 属性

定义

获取完整的操作系统名称。

public:
 property System::String ^ OSFullName { System::String ^ get(); };
public string OSFullName { get; }
member this.OSFullName : string
Public ReadOnly Property OSFullName As String

属性值

一个 String 包含操作系统名称。

例外

调用代码不具有完全信任。

示例

此示例使用 My.Computer.Info.OSFullName 属性显示计算机操作系统的名称。

MsgBox("Computer's operating system name: " &
    My.Computer.Info.OSFullName)

注解

如果计算机上安装了 Windows Management Instrumentation (WMI),此属性将返回有关操作系统名称的详细信息。 否则,此属性将返回与该属性相同的字符串,该字符串 My.Computer.Info.OSPlatform 提供的详细信息比 WMI 提供的要少。

适用于

另请参阅