共用方式為


HttpRuntimeSection.RequestValidationType 屬性

定義

取得或設定用於驗證 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 類別。 在應用程式的組態檔中,您接著將 requestValidationType 專案的 屬性 httpRuntime 設定為自訂類型的完整字串名稱。 如需詳細資訊,請參閱 HTTPRuntime 元素 (ASP.NET 設定架構)

適用於