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 设置架构)。

适用于