Selerix Developer Tools
GetPhoneParts Method






Selerix.Foundation Assembly > Selerix.Foundation.Data Namespace > Utils Class : GetPhoneParts Method
Phone number
Country code
Area code
Local number
Extension
Splits phone in parts and returns those parts.
Syntax
'Declaration
 
Public Shared Function GetPhoneParts( _
   ByVal phone As String, _
   ByRef countryCode As String, _
   ByRef areaCode As String, _
   ByRef localNumber As String, _
   ByRef extension As String _
) As Boolean
'Usage
 
Dim phone As String
Dim countryCode As String
Dim areaCode As String
Dim localNumber As String
Dim extension As String
Dim value As Boolean
 
value = Utils.GetPhoneParts(phone, countryCode, areaCode, localNumber, extension)
public static bool GetPhoneParts( 
   string phone,
   out string countryCode,
   out string areaCode,
   out string localNumber,
   out string extension
)
public function GetPhoneParts( 
    phone: String;
   Out  countryCode: String;
   Out  areaCode: String;
   Out  localNumber: String;
   Out  extension: String
): Boolean; static; 
public static function GetPhoneParts( 
   phone : String,
   countryCode : String,
   areaCode : String,
   localNumber : String,
   extension : String
) : boolean;
public: static bool GetPhoneParts( 
   string* phone,
   [PARAMFLAG::Out] string* countryCode,
   [PARAMFLAG::Out] string* areaCode,
   [PARAMFLAG::Out] string* localNumber,
   [PARAMFLAG::Out] string* extension
) 
public:
static bool GetPhoneParts( 
   String^ phone,
   [Out] String^ countryCode,
   [Out] String^ areaCode,
   [Out] String^ localNumber,
   [Out] String^ extension
) 

Parameters

phone
Phone number
countryCode
Country code
areaCode
Area code
localNumber
Local number
extension
Extension
See Also

Reference

Utils Class
Utils Members