FrameworkName Constructor (String, Version, String)

.NET Framework (current version)
 

Initializes a new instance of the FrameworkName class from a string, a Version object that identifies a .NET Framework version, and a profile name.

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

public FrameworkName(
	string identifier,
	Version version,
	string profile
)

Parameters

identifier
Type: System.String

A string that identifies a .NET Framework version.

version
Type: System.Version

An object that contains .NET Framework version information.

profile
Type: System.String

A profile name.

Exception Condition
ArgumentException

identifier is String.Empty.

ArgumentNullException

identifier is null.

-or-

version is null.

The FrameworkName class requires that a Version object include at least a major and minor version number.

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