Export (0) Print
Expand All

FrameworkName.ToString Method

Returns the string representation of this FrameworkName object.

Namespace:  System.Runtime.Versioning
Assembly:  System (in System.dll)

public override string ToString()

Return Value

Type: System.String
A string that represents this FrameworkName object.

The string returned by the ToString method has the following format:

identifier, Version=version[, Profile=profile]

where identifier corresponds to the Identifier property, version is equivalent to calling Version.ToString on the value of the Version property, and profile corresponds to the Profile property. If a profile has not been assigned to the FrameworkName object, the profile component is not included in the returned string.

The value returned by the ToString method is identical to the value of the FullName property.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft