你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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

Name Description
PhoneNumberIdentifier(String, String)

Initializes a new instance of PhoneNumberIdentifier.

Properties

Name Description
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

Name Description
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