HttpRuntimeSection.EnableVersionHeader Property


Gets or sets a value that indicates whether ASP.NET should output a version header.

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

[<ConfigurationPropertyAttribute("enableVersionHeader", DefaultValue = true)>]
member EnableVersionHeader : bool with get, set

Property Value

Type: System.Boolean

true if the output of the version header is enabled; otherwise, false. The default value is true.

This attribute is used by Visual Studio to determine which version of ASP.NET is in use. It is not necessary for production sites and can be disabled.

The following example shows how to use the EnableVersionHeader property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top