Export (0) Print
Expand All

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(L"enableVersionHeader", DefaultValue = true)]
public:
property bool EnableVersionHeader {
	bool get ();
	void set (bool value);
}

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft