Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FrameworkName Constructor (String, Version, String)

.NET Framework 4.6 and 4.5

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
Assemblies:   System.Runtime.Extensions (in System.Runtime.Extensions.dll)
  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.

ExceptionCondition
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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft