This documentation is archived and is not being maintained.

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

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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