HttpRuntimeSection.RequestPathInvalidCharacters Property

Definition

Gets or sets a list of characters that are specified as invalid in a path that is part of an HTTP request.

C#
[System.Configuration.ConfigurationProperty("requestPathInvalidCharacters", DefaultValue="<,>,*,%,&,:,\,?")]
public string RequestPathInvalidCharacters { get; set; }

Property Value

A comma-separated list of invalid characters. The following list contains the default set of invalid characters:

<,>,*,%,&,:,\

Attributes

Remarks

To set this value in a configuration file, you can assign a comma-separated string of characters to the requestPathInvalidCharacters attribute of the httpRuntime element. For more information, see httpRuntime Element (ASP.NET Settings Schema).

Applies to

Product Versions
.NET Framework 4.0, 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