CompilationSection.TargetFramework Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the version of the .NET Framework that the Web site targets.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("targetFramework", DefaultValue := Nothing)>
Public Property TargetFramework As String

Property Value

Type: System.String

The version of the .NET Framework that the Web site targets. The default value is null.

For information about how to target a specific version of the .NET Framework, see .NET Framework Multi-Targeting for ASP.NET Web Projects.

.NET Framework
Available since 4.0
Return to top
Show: