CompilationSection.TargetFramework 屬性

定義

取得或設定網站以之為設計目標的 .NET Framework 版本。

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

屬性值

String

網站以之為設計目標的 .NET Framework 版本。 預設值是 null

屬性

範例

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

備註

如需如何以特定版本.NET Framework為目標的資訊,請參閱.NET Framework ASP.NET Web 專案的多重目標

適用於