CompilationSection.TargetFramework CompilationSection.TargetFramework CompilationSection.TargetFramework CompilationSection.TargetFramework Property

定義

取得或設定網站以之為設計目標的 .NET Framework 版本。Gets or sets the version of the .NET Framework that the Web site targets.

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

屬性值

網站以之為設計目標的 .NET Framework 版本。The version of the .NET Framework that the Web site targets. 預設值為 nullThe default value is null.

範例

compilation 項目 (ASP.NET 設定結構描述)compilation Element (ASP.NET Settings Schema)

備註

如需如何設定目標.NET Framework 特定版本資訊,請參閱ASP.NET Web 專案的.NET Framework 多目標For information about how to target a specific version of the .NET Framework, see .NET Framework Multi-Targeting for ASP.NET Web Projects.

適用於