Determines if a given number is valid, this should be used to determine recipient number validity. Reasons for failure would include - if the length is less-than 7 or greater-than 15 or if the number starts with 0 or if the number contains alphanumeric characters.
Namespace: Dynmark.Services.API
Assembly: Dynmark.Services.API (in Dynmark.Services.API.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Public Function IsValidMobileNumber( _ ByVal mobileNumber As String _ ) As Boolean |
| C# |
|---|
| public bool IsValidMobileNumber( string mobileNumber ) |
| C++ |
|---|
| public: bool IsValidMobileNumber( String mobileNumber ) sealed |
| J# |
|---|
| public bool IsValidMobileNumber( string mobileNumber ) |
| JScript |
|---|
| public
function IsValidMobileNumber( mobileNumber : String ) : bool |
Parameters
- mobileNumber
- The mobile number to validate
Return Value
True if valid, False if invalid