Share via


PhoneNumberIdentifier Class

Definition

Represents a Phone Number.

public class PhoneNumberIdentifier : Azure.Communication.CommunicationIdentifier
type PhoneNumberIdentifier = class
    inherit CommunicationIdentifier
Public Class PhoneNumberIdentifier
Inherits CommunicationIdentifier
Inheritance
PhoneNumberIdentifier

Constructors

PhoneNumberIdentifier(String, String)

Initializes a new instance of PhoneNumberIdentifier.

Properties

AssertedId

The asserted Id is set on a phone number that is already in the same call to distinguish from other connections made through the same number.

IsAnonymous

True if the phone number is anonymous, e.g. when used to represent a hidden caller Id.

PhoneNumber

The phone number in E.164 format.

RawId

Returns the canonical string representation of the PhoneNumberIdentifier. You can use the RawId for encoding the identifier and then use it as a key in a database.

Methods

Equals(CommunicationIdentifier)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Serves as the default hash function.

(Inherited from CommunicationIdentifier)
ToString()

Returns a string that represents the current object.

Applies to