AvailablePhoneNumber Constructor

Definition

Initializes a new instance of AvailablePhoneNumber.

public AvailablePhoneNumber(string countryCode, Azure.Communication.PhoneNumbers.PhoneNumberCapabilities capabilities, Azure.Communication.PhoneNumbers.PhoneNumberType phoneNumberType, Azure.Communication.PhoneNumbers.PhoneNumberAssignmentType assignmentType);
new Azure.Communication.PhoneNumbers.AvailablePhoneNumber : string * Azure.Communication.PhoneNumbers.PhoneNumberCapabilities * Azure.Communication.PhoneNumbers.PhoneNumberType * Azure.Communication.PhoneNumbers.PhoneNumberAssignmentType -> Azure.Communication.PhoneNumbers.AvailablePhoneNumber
Public Sub New (countryCode As String, capabilities As PhoneNumberCapabilities, phoneNumberType As PhoneNumberType, assignmentType As PhoneNumberAssignmentType)

Parameters

countryCode
String

The ISO 3166-2 country code, e.g. US.

capabilities
PhoneNumberCapabilities

Capabilities of a phone number.

phoneNumberType
PhoneNumberType

Represents the number type of the offering.

assignmentType
PhoneNumberAssignmentType

Represents the assignment type of the offering. Also known as the use case.

Exceptions

countryCode or capabilities is null.

Applies to