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 a floating-point number.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Function Float ( _
errorMessage As String _
) As IValidator
'Usage
Dim errorMessage As String
Dim returnValue As IValidator
returnValue = Validator.Float(errorMessage)
public static IValidator Float(
string errorMessage
)
public:
static IValidator^ Float(
String^ errorMessage
)
static member Float :
errorMessage:string -> IValidator
public static function Float(
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.