Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines a validation test that tests whether a value has been provided.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Function Required ( _
errorMessage As String _
) As IValidator
'Usage
Dim errorMessage As String
Dim returnValue As IValidator
returnValue = Validator.Required(errorMessage)
public static IValidator Required(
string errorMessage
)
public:
static IValidator^ Required(
String^ errorMessage
)
static member Required :
errorMessage:string -> IValidator
public static function Required(
errorMessage : String
) : IValidator
Parameters
- errorMessage
Type: System.String
The error message to display if validation fails.
Return Value
Type: System.Web.WebPages.IValidator
The validation test.