PhoneNumbersClient.StartUpdateCapabilities Method

Definition

Updates the capabilities of a phone number.

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

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