HttpRuntimeSection.RequestValidationType 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定用於驗證 HTTP 請求的型別名稱。
public:
property System::String ^ RequestValidationType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("requestValidationType", DefaultValue="System.Web.Util.RequestValidator")]
[System.Configuration.StringValidator(MinLength=1)]
public string RequestValidationType { get; set; }
[<System.Configuration.ConfigurationProperty("requestValidationType", DefaultValue="System.Web.Util.RequestValidator")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.RequestValidationType : string with get, set
Public Property RequestValidationType As String
屬性值
處理請求驗證任務的類型名稱。 預設名稱是 ASP.NET 用於驗證的 RequestValidator 類型的完全限定名稱。
- 屬性
備註
若要自訂 ASP.NET 請求驗證行為,可以建立繼承自 RequestValidator 型態的類別。 在應用程式的設定檔中,你將元素的屬性httpRuntime設定requestValidationType為自訂型別的完全限定字串名稱。 更多資訊請參閱 httpRuntime Element(ASP.NET 設定結構)。