Validator.Decimal(String) 方法

定义

定义一个验证测试,以便测试是否可以将某个值视为小数。

public static System.Web.WebPages.IValidator Decimal (string errorMessage = default);
static member Decimal : string -> System.Web.WebPages.IValidator
Public Shared Function Decimal (Optional errorMessage As String = null) As IValidator

参数

errorMessage
String

验证失败时会显示的错误消息。

返回

验证测试。

适用于