ValidatorHelper Methods

HD.Common

ValidatorHelper Methods Helper帮助文档

The ValidatorHelper type exposes the following members.

Methods

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

Reference