Compartilhar via


PhoneNumbersClient.StartUpdateCapabilities Método

Definição

Atualizações os recursos de um número de telefone.

public virtual Azure.Communication.PhoneNumbers.UpdatePhoneNumberCapabilitiesOperation StartUpdateCapabilities (string phoneNumber, Azure.Communication.PhoneNumbers.PhoneNumberCapabilityType? calling = default, Azure.Communication.PhoneNumbers.PhoneNumberCapabilityType? sms = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartUpdateCapabilities : string * Nullable<Azure.Communication.PhoneNumbers.PhoneNumberCapabilityType> * Nullable<Azure.Communication.PhoneNumbers.PhoneNumberCapabilityType> * System.Threading.CancellationToken -> Azure.Communication.PhoneNumbers.UpdatePhoneNumberCapabilitiesOperation
override this.StartUpdateCapabilities : string * Nullable<Azure.Communication.PhoneNumbers.PhoneNumberCapabilityType> * Nullable<Azure.Communication.PhoneNumbers.PhoneNumberCapabilityType> * System.Threading.CancellationToken -> Azure.Communication.PhoneNumbers.UpdatePhoneNumberCapabilitiesOperation
Public Overridable Function StartUpdateCapabilities (phoneNumber As String, Optional calling As Nullable(Of PhoneNumberCapabilityType) = Nothing, Optional sms As Nullable(Of PhoneNumberCapabilityType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As UpdatePhoneNumberCapabilitiesOperation

Parâmetros

phoneNumber
String

A ID do número de telefone no formato E.164. A adição à esquerda pode ser + ou codificada como %2B, por exemplo, +14255550123.

calling
Nullable<PhoneNumberCapabilityType>

Valor da funcionalidade para chamar.

sms
Nullable<PhoneNumberCapabilityType>

Valor da funcionalidade para SMS.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

phoneNumber é nulo.

Aplica-se a