AppContext.TargetFrameworkName AppContext.TargetFrameworkName AppContext.TargetFrameworkName AppContext.TargetFrameworkName Property

定义

获取当前应用程序所针对的框架版本的名称。Gets the name of the framework version targeted by the current application.

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

属性值

当前应用程序所针对的框架版本的名称。The name of the framework version targeted by the current application.

注解

目标 framework 版本的名称对应于TargetFrameworkAttribute.FrameworkName属性的值。The name of the target framework version corresponds to the value of the TargetFrameworkAttribute.FrameworkName property. 有关 .NET Framework 的目标框架名称的列表,请参阅 <supportedRuntime>元素元素。For a list of target framework names for the .NET Framework, see the <supportedRuntime> Element element.

适用于

另请参阅