CompilationSection.TargetFramework 属性

定义

获取或设置网站面向的.NET框架的版本。

public:
 property System::String ^ TargetFramework { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("targetFramework", DefaultValue=null)]
public string TargetFramework { get; set; }
[<System.Configuration.ConfigurationProperty("targetFramework", DefaultValue=null)>]
member this.TargetFramework : string with get, set
Public Property TargetFramework As String

属性值

网站面向的.NET框架的版本。 默认值为 null

属性

示例

编译元素(ASP.NET 设置架构)

注解

有关如何面向特定版本的 .NET Framework 的信息,请参阅 .NET ASP.NET Web 项目的框架多目标

适用于