Share via


PhoneNumberIdentifier(String, String) Constructor

Definition

Initializes a new instance of PhoneNumberIdentifier.

public PhoneNumberIdentifier (string phoneNumber, string rawId = default);
new Azure.Communication.PhoneNumberIdentifier : string * string -> Azure.Communication.PhoneNumberIdentifier
Public Sub New (phoneNumber As String, Optional rawId As String = Nothing)

Parameters

phoneNumber
String

The phone number in E.164 format.

rawId
String

Raw id of the phone number, optional.

Exceptions

Thrown when the phoneNumber is null.

Thrown when the phoneNumber is empty.

Applies to