Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TargetFrameworkAttribute Constructor

TargetFrameworkAttribute Constructor

Initializes an instance of the TargetFrameworkAttribute class by specifying the .NET Framework version against which an assembly was built.

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

public TargetFrameworkAttribute(
	string frameworkName
)

Parameters

frameworkName
Type: System.String

The version of the .NET Framework against which the assembly was built.

ExceptionCondition
ArgumentNullException

frameworkName is null.

The string that is assigned to the frameworkName parameter generally takes the same form as the string that is returned by the FrameworkName.ToString method.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft