OperatingSystem.ToString Method ()

 

Converts the value of this OperatingSystem object to its equivalent string representation.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

override ToString : unit -> string

Return Value

Type: System.String

The string representation of the values returned by the Platform, Version, and ServicePack properties.

See Operating System Version on the Windows Dev Center for a list of Windows operating system versions and their corresponding version numbers.

The following code example illustrates the use of the ToString method to display OperatingSystem objects.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: