HttpRuntimeSection.RequestPathInvalidCharacters 属性

定义

获取或设置一个字符列表,这些字符在 HTTP 请求包含的路径中指定为无效字符。

public:
 property System::String ^ RequestPathInvalidCharacters { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("requestPathInvalidCharacters", DefaultValue="<,>,*,%,&,:,\,?")]
public string RequestPathInvalidCharacters { get; set; }
[<System.Configuration.ConfigurationProperty("requestPathInvalidCharacters", DefaultValue="<,>,*,%,&,:,\,?")>]
member this.RequestPathInvalidCharacters : string with get, set
Public Property RequestPathInvalidCharacters As String

属性值

String

一个以逗号分隔的无效字符列表。 以下列表包含默认的无效字符集: <,>,*,%,&,:,\

属性

注解

若要在配置文件中设置此值,可以将逗号分隔的httpRuntime字符字符串分配给requestPathInvalidCharacters元素的属性。 有关详细信息,请参阅 httpRuntime 元素 (ASP.NET 设置架构)

适用于