Click or drag to resize
ZenophSMSisValidPhoneNumber Method (String, Boolean)
Checks whether the specified value is a valid phone number or not.

Namespace: Zenoph.SMSLib
Assembly: Zenoph.SMSLib (in Zenoph.SMSLib.dll) Version: 2015.9.30.0 (2015.09.30.0)
Syntax
public bool isValidPhoneNumber(
	string phonenum,
	bool onroutes
)

Parameters

phonenum
Type: SystemString
The value to check whether it is a valid phone number or not.
onroutes
Type: SystemBoolean
Indicates whether the method should also check whether phonenum is allowed on user routes or not.

Return Value

Type: Boolean

When onroutes is set to false, the method returns true if phonenum is a valid phone number. When onroutes is set to true, the method returns true if number is a valid phone number and also allowed on the user's routes.

See Also