HttpRuntimeSection.RequestPathInvalidCharacters 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 a list of characters that are specified as invalid in a path that is part of an HTTP request.

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

[<ConfigurationPropertyAttribute("requestPathInvalidCharacters",
    DefaultValue = "<,>,*,%,&,:,\\,?")>]
member RequestPathInvalidCharacters : string with get, set

Property Value

Type: System.String

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

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

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).

.NET Framework
Available since 4.0
Return to top
Show: