C# 클래스 System.Utilities.Validation

Provides several functions for validating various inputs.
파일 보기 프로젝트 열기: ellipticbit/systemutilities

공개 메소드들

메소드 설명
IsAlphaNumeric ( String stringToCheck ) : bool

Tests whether input string contains valid alpha-numeric characters.

IsNumeric ( String stringToCheck ) : bool

Tests whether input string contains valid numeric characters.

IsValidEmailAddress ( string EmailAddress ) : bool

Tests whether input string is a valid email address.

IsValidFileName ( string FileName ) : bool

Tests whether input string is a valid phone number.

IsValidHTTPURI ( string HTTPURI ) : bool

Tests whether input string is a valid phone number.

IsValidIPv4 ( string IPv4 ) : bool

Tests whether input string is a valid phone number.

IsValidIPv6 ( string IPv6 ) : bool

Tests whether input string is a valid phone number.

IsValidPhoneNumber ( string PhoneNumber ) : bool

Tests whether input string is a valid phone number.

IsValidZIP ( string ZIP ) : bool

Tests whether input string is a valid 5 or 9 digit ZIP Code. Expected format: #####, ##### ####, or #####-####.

IsValidZIP5 ( string ZIP5 ) : bool

Tests whether input string is a valid 5 digit ZIP Code.

비공개 메소드들

메소드 설명
Validation ( ) : System.Text.RegularExpressions

메소드 상세

IsAlphaNumeric() 공개 정적인 메소드

Tests whether input string contains valid alpha-numeric characters.
public static IsAlphaNumeric ( String stringToCheck ) : bool
stringToCheck String String to test.
리턴 bool

IsNumeric() 공개 정적인 메소드

Tests whether input string contains valid numeric characters.
public static IsNumeric ( String stringToCheck ) : bool
stringToCheck String String to test.
리턴 bool

IsValidEmailAddress() 공개 정적인 메소드

Tests whether input string is a valid email address.
public static IsValidEmailAddress ( string EmailAddress ) : bool
EmailAddress string Email address to test.
리턴 bool

IsValidFileName() 공개 정적인 메소드

Tests whether input string is a valid phone number.
public static IsValidFileName ( string FileName ) : bool
FileName string Phone number to test.
리턴 bool

IsValidHTTPURI() 공개 정적인 메소드

Tests whether input string is a valid phone number.
public static IsValidHTTPURI ( string HTTPURI ) : bool
HTTPURI string Phone number to test.
리턴 bool

IsValidIPv4() 공개 정적인 메소드

Tests whether input string is a valid phone number.
public static IsValidIPv4 ( string IPv4 ) : bool
IPv4 string Phone number to test.
리턴 bool

IsValidIPv6() 공개 정적인 메소드

Tests whether input string is a valid phone number.
public static IsValidIPv6 ( string IPv6 ) : bool
IPv6 string Phone number to test.
리턴 bool

IsValidPhoneNumber() 공개 정적인 메소드

Tests whether input string is a valid phone number.
public static IsValidPhoneNumber ( string PhoneNumber ) : bool
PhoneNumber string Phone number to test.
리턴 bool

IsValidZIP() 공개 정적인 메소드

Tests whether input string is a valid 5 or 9 digit ZIP Code. Expected format: #####, ##### ####, or #####-####.
public static IsValidZIP ( string ZIP ) : bool
ZIP string 5 or 9 digit ZIP code to test.
리턴 bool

IsValidZIP5() 공개 정적인 메소드

Tests whether input string is a valid 5 digit ZIP Code.
public static IsValidZIP5 ( string ZIP5 ) : bool
ZIP5 string 5 digit ZIP Code to test.
리턴 bool