ValidateHelperIsNumber Method |
是否为非负纯数字
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public static bool IsNumber(
string source,
bool isNegative = false
)
Public Shared Function IsNumber (
source As String,
Optional isNegative As Boolean = false
) As Boolean
public:
static bool IsNumber(
String^ source,
bool isNegative = false
)
static member IsNumber :
source : string *
?isNegative : bool
(* Defaults:
let _isNegative = defaultArg isNegative false
*)
-> bool
Parameters
- source
- Type: SystemString
[Missing <param name="source"/> documentation for "M:Adf.ValidateHelper.IsNumber(System.String,System.Boolean)"]
- isNegative (Optional)
- Type: SystemBoolean
是否允许为负数
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Adf.ValidateHelper.IsNumber(System.String,System.Boolean)"]
See Also