ValidatorHelper Methods | Helper帮助文档 |
The ValidatorHelper type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
checkUserId |
验证用户名:必须以字母开头,可以包含字母、数字、“_”、“.”,至少5个字符
|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() ![]() |
hasChinese | |
![]() ![]() |
HasEmail | |
![]() ![]() |
HasIP | |
![]() ![]() |
HasMobile | |
![]() ![]() |
HasUrl | |
![]() ![]() |
IsChinese |
中文
|
![]() ![]() |
IsDate | |
![]() ![]() |
IsDateTime |
验证日期
|
![]() ![]() |
IsDecimal |
是否为数字型
|
![]() ![]() |
IsEmail |
验证邮箱
|
![]() ![]() |
IsHanyu |
验证是否包含汉语
|
![]() ![]() |
IsHanyuAll |
验证是否全部汉语
|
![]() ![]() |
IsIDCard |
验证身份证是否有效
|
![]() ![]() |
IsIDCard15 | |
![]() ![]() |
IsIDCard18 | |
![]() ![]() |
IsInt |
是不是Int型的
|
![]() ![]() |
IsIp | |
![]() ![]() |
IsIP |
验证IP
|
![]() ![]() |
IsLengthStr |
看字符串的长度是不是在限定数之间 一个中文为两个字符
|
![]() ![]() |
IsMobile |
验证手机号
|
![]() ![]() |
IsNormalChar |
验证是不是正常字符 字母,数字,下划线的组合
|
![]() ![]() |
IsNumber |
判断字符串是否为数字
|
![]() ![]() |
IsPostCode |
邮政编码 6个数字
|
![]() ![]() |
IsTel |
是不是中国电话,格式010-85849685
|
![]() ![]() |
IsUrl |
验证网址
|
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
ToString | (Inherited from Object.) |
See Also