Export (0) Print
Expand All

OperatingSystem.ToString Method

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

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

abstract ToString : unit -> string  
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft