Επεξεργασία

Κοινή χρήση μέσω


ComputerInfo.OSFullName Property

Definition

Gets the full operating system name.

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

Property Value

A String containing the operating-system name.

Exceptions

The calling code does not have full trust.

Examples

This example uses the My.Computer.Info.OSFullName property to display the name of the computer's operating system.

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

Remarks

This property returns detailed information about the operating system name if Windows Management Instrumentation (WMI) is installed on the computer. Otherwise, this property returns the same string as the My.Computer.Info.OSPlatform property, which provides less detailed information than WMI can provide.

Applies to

See also