CompilationSection.TargetFramework Vlastnost

Definice

Získá nebo nastaví verzi .NET Framework, který web cílí.

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

Hodnota vlastnosti

Verze .NET Framework, na kterou web cílí. Výchozí hodnota je null.

Atributy

Příklady

element compilation (schéma nastavení ASP.NET)

Poznámky

Informace o tom, jak cílit na konkrétní verzi rozhraní .NET Framework, najdete v tématu .NET Cílení na více platforem pro webové projekty ASP.NET.

Platí pro