Visual Basic (Declaration) | |
---|---|
Public Shared USPhone As NamedRegexPattern |
Visual Basic (Usage) | ![]() |
---|---|
Dim value As NamedRegexPattern value = NamedRegexPattern.USPhone NamedRegexPattern.USPhone = value |
C# | |
---|---|
public static NamedRegexPattern USPhone |
C++/CLI | |
---|---|
public: static NamedRegexPattern^ USPhone |
A U.S. phone number must be formatted as (XXX)XXX-XXXX or XXX-XXX-XXXX to be valid. There can be an optional space after the closing parenthesis on an area code and the first digit of an area code or phone number must not be a 1
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family