Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

OSFullName Property

Location

My.Computer.Info.OSFullName

Syntax

Dim result As String = My.Computer.Info.OSFullName

Description

The OSFullName property returns the full name of the operating system.

Usage at a Glance

  • This property is read-only.

  • An exception is thrown if the user does not have sufficient security privileges to access system information.

  • If Windows Management Instrumentation (WMI) is not installed on the local computer, this property returns the same data as the My.Computer.Info.OSPlatform property.

Example

The text returned by this property varies by operating system. For instance, the text returned for Windows XP Professional is, as expected, "Microsoft Windows XP Professional."

Related Framework Entries

  • Microsoft.VisualBasic.Devices.ComputerInfo.OSFullName Property

See Also

Info Object (My.Computer), OSPlatform Property, OSVersion Property

Категории