FrameworkName Constructor (String, Version)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the FrameworkName class from a string and a Version object that identify a .NET Framework version.

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

public FrameworkName(
	string identifier,
	Version version
)

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.

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: