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 can be treated as an integer.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Function Integer ( _
errorMessage As String _
) As IValidator
'Usage
Dim errorMessage As String
Dim returnValue As IValidator
returnValue = Validator.Integer(errorMessage)
public static IValidator Integer(
string errorMessage
)
public:
static IValidator^ Integer(
String^ errorMessage
)
static member Integer :
errorMessage:string -> IValidator
public static function Integer(
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.