RequestFieldValidatorBase Constructor (String, Boolean)

Initializes a new instance of the derived class, registers the specified string as the error message to display if no value is supplied, and specifies whether the method can use unvalidated data.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Protected Sub New ( _
    errorMessage As String, _
    useUnvalidatedValues As Boolean _
)
'Usage
Dim errorMessage As String 
Dim useUnvalidatedValues As Boolean 

Dim instance As New RequestFieldValidatorBase(errorMessage, _
    useUnvalidatedValues)
protected RequestFieldValidatorBase(
    string errorMessage,
    bool useUnvalidatedValues
)
protected:
RequestFieldValidatorBase(
    String^ errorMessage, 
    bool useUnvalidatedValues
)
new : 
        errorMessage:string * 
        useUnvalidatedValues:bool -> RequestFieldValidatorBase
protected function RequestFieldValidatorBase(
    errorMessage : String, 
    useUnvalidatedValues : boolean
)

Parameters

  • useUnvalidatedValues
    Type: System.Boolean
    true to use unvalidated user input; false to reject unvalidated data. This parameter is set to true by calling methods in circumstances when the actual value of the user input is not important, such as for required fields.

See Also

Reference

RequestFieldValidatorBase Class

RequestFieldValidatorBase Overload

System.Web.WebPages Namespace