ValidatorHelper Class | Helper帮助文档 |
各种验证帮助类
Inheritance Hierarchy
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class ValidatorHelper
Public Class ValidatorHelper
public ref class ValidatorHelper
type ValidatorHelper = class end
The ValidatorHelper type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ValidatorHelper | Initializes a new instance of the ValidatorHelper class |
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