HttpRuntimeSection.RequestPathInvalidCharacters 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個在 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
屬性值
一個逗號分隔的無效字元清單。 以下列表包含預設的無效字元集合:
<,>,*,%,&,:,\
- 屬性
備註
要在設定檔中設定此值,你可以將逗號分隔的字串指派給requestPathInvalidCharactershttpRuntime元素屬性。 更多資訊請參閱 httpRuntime Element(ASP.NET 設定結構)。