PhoneNumbersClient.StartUpdateCapabilitiesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Capability value for SMS.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
phoneNumber
is null.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET