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 框架,請參見 .NET ASP.NET Web 專案框架多目標

適用於