UnvalidatedRequestValuesBase.Headers Property

Definition

When overridden in a derived class, gets the collection of HTTP headers that the client sent, without triggering ASP.NET request validation.

C#
public virtual System.Collections.Specialized.NameValueCollection Headers { get; }

Property Value

The headers from the HTTP request.

Exceptions

The property is not implemented.

Notes to Inheritors

If you override this property in a derived class, you must manually check the data for potential cross-site scripting attacks.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1