Export (0) Print
Expand All

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)

new : 
        frameworkName:string -> TargetFrameworkAttribute

Parameters

frameworkName
Type: System.String

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

ExceptionCondition
ArgumentNullException

frameworkName is a null reference (Nothing in Visual Basic).

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

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft