Share via


PhoneNumbersClient.StartUpdateCapabilitiesAsync Method

Definition

Updates the capabilities of a phone number.

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

Parameters

phoneNumber
String

The phone number id in E.164 format. The leading plus can be either + or encoded as %2B, e.g. +14255550123.

calling
Nullable<PhoneNumberCapabilityType>

Capability value for calling.

sms
Nullable<PhoneNumberCapabilityType>

Capability value for SMS.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

phoneNumber is null.

Applies to