Class TargetFrameworkAttribute
Identifies the version of the .NET Framework that a particular assembly was compiled against.
Inherited Members
Namespace: System.Runtime.Versioning
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class TargetFrameworkAttribute : Attribute
Constructors
TargetFrameworkAttribute(string)
Initializes an instance of the TargetFrameworkAttribute class by specifying the .NET Framework version against which an assembly was built.
Declaration
public TargetFrameworkAttribute(string frameworkName)
Parameters
Type | Name | Description |
---|---|---|
string | frameworkName | The version of the .NET Framework against which the assembly was built. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
Properties
FrameworkDisplayName
Gets the display name of the .NET Framework version against which an assembly was built.
Declaration
public string FrameworkDisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | The display name of the .NET Framework version. |
FrameworkName
Gets the name of the .NET Framework version against which a particular assembly was compiled.
Declaration
public string FrameworkName { get; }
Property Value
Type | Description |
---|---|
string | The name of the .NET Framework version with which the assembly was compiled. |