mscorlib(4.0.0.0) API with additions
TargetFrameworkAttribute.cs
2 {
4  [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
5  [__DynamicallyInvokable]
6  public sealed class TargetFrameworkAttribute : Attribute
7  {
8  private string _frameworkName;
9 
10  private string _frameworkDisplayName;
11 
14  [__DynamicallyInvokable]
15  public string FrameworkName
16  {
17  [__DynamicallyInvokable]
18  get
19  {
20  return _frameworkName;
21  }
22  }
23 
26  [__DynamicallyInvokable]
27  public string FrameworkDisplayName
28  {
29  [__DynamicallyInvokable]
30  get
31  {
32  return _frameworkDisplayName;
33  }
34  [__DynamicallyInvokable]
35  set
36  {
37  _frameworkDisplayName = value;
38  }
39  }
40 
45  [__DynamicallyInvokable]
46  public TargetFrameworkAttribute(string frameworkName)
47  {
48  if (frameworkName == null)
49  {
50  throw new ArgumentNullException("frameworkName");
51  }
52  _frameworkName = frameworkName;
53  }
54  }
55 }
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
string FrameworkDisplayName
Gets the display name of the .NET Framework version against which an assembly was built.
Represents the base class for custom attributes.
Definition: Attribute.cs:15
TargetFrameworkAttribute(string frameworkName)
Initializes an instance of the T:System.Runtime.Versioning.TargetFrameworkAttribute class by specifyi...
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
Identifies the version of the .NET Framework that a particular assembly was compiled against.
Represents the name of a version of the .NET Framework.
Definition: FrameworkName.cs:8