Edit

Share via


PhoneNumber Constructors

Definition

Overloads

PhoneNumber(String, String)

Create an instance of PhoneNumber

PhoneNumber(String, String, String)

Create an instance of PhoneNumber.

PhoneNumber(String, String)

Create an instance of PhoneNumber

public:
 PhoneNumber(System::String ^ phoneType, System::String ^ displayValue);
public PhoneNumber (string phoneType, string displayValue);
new Microsoft.Rtc.Collaboration.Presence.PhoneNumber : string * string -> Microsoft.Rtc.Collaboration.Presence.PhoneNumber
Public Sub New (phoneType As String, displayValue As String)

Parameters

phoneType
String

Type of phone(work/home/mobile/other).

displayValue
String

Phone number as common display string

Remarks

This constructor assume the display string for phone represents the phone number and build phoneUri as "tel:"+displayString.

Applies to

PhoneNumber(String, String, String)

Create an instance of PhoneNumber.

public:
 PhoneNumber(System::String ^ phoneType, System::String ^ displayValue, System::String ^ phoneUri);
public PhoneNumber (string phoneType, string displayValue, string phoneUri);
new Microsoft.Rtc.Collaboration.Presence.PhoneNumber : string * string * string -> Microsoft.Rtc.Collaboration.Presence.PhoneNumber
Public Sub New (phoneType As String, displayValue As String, phoneUri As String)

Parameters

phoneType
String

Type of phone, work, home moblie

displayValue
String

Phone number as common display string

phoneUri
String

URI for the phone.

Applies to