FrameworkName.ToString Method ()

.NET Framework (current version)

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0
Return to top