TargetFrameworkAttribute(String) TargetFrameworkAttribute(String) TargetFrameworkAttribute(String) TargetFrameworkAttribute(String) Constructor

Definition

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

public:
 TargetFrameworkAttribute(System::String ^ frameworkName);
public TargetFrameworkAttribute (string frameworkName);
new System.Runtime.Versioning.TargetFrameworkAttribute : string -> System.Runtime.Versioning.TargetFrameworkAttribute
Public Sub New (frameworkName As String)

Parameters

frameworkName
String String String String

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

Exceptions

Remarks

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.

Applies to