TargetFrameworkAttribute.FrameworkName 属性

定义

获取编译某个特定程序集时所针对的 .NET 版本的名称。Gets the name of the .NET version against which a particular assembly was compiled.

public:
 property System::String ^ FrameworkName { System::String ^ get(); };
public string FrameworkName { get; }
member this.FrameworkName : string
Public ReadOnly Property FrameworkName As String

属性值

String

编译程序集所用的 .NET 版本的名称。The name of the .NET version with which the assembly was compiled.

注解

FrameworkName属性映射到 frameworkName TargetFrameworkAttribute 构造函数的参数。The FrameworkName property maps to the frameworkName parameter of the TargetFrameworkAttribute constructor. 它以简洁形式表示 .NET 版本,通常对应于方法返回的字符串 FrameworkName.ToStringIt represents the .NET version in a compact form and typically corresponds to the string that is returned by the FrameworkName.ToString method.

适用于

另请参阅