ComputerInfo.OSPlatform Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the platform identifier for the operating system of the computer.
public:
property System::String ^ OSPlatform { System::String ^ get(); };
public string OSPlatform { get; }
member this.OSPlatform : string
Public ReadOnly Property OSPlatform As String
Property Value
A String
containing the platform identifier for the operating system of the computer, chosen from the member names of the PlatformID enumeration.
Exceptions
The application cannot obtain the operating-system platform information.
Examples
This example uses the My.Computer.Info.OSPlatform
property to display the platform of the computer's operating system.
MsgBox("Computer's operating system platform: " &
My.Computer.Info.OSPlatform)
Remarks
The My.Computer.Info.OSPlatform
property provides functionality similar to the Platform property of the object returned by the OSVersion property.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om