Freigeben über


PhoneNumbersClient.StartUpdateCapabilitiesAsync Methode

Definition

Updates die Funktionen einer Telefonnummer.

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)

Parameter

phoneNumber
String

Die Telefonnummern-ID im E.164-Format. Das führende Plus kann entweder + oder als %2B codiert werden, z. B. +14255550123.

calling
Nullable<PhoneNumberCapabilityType>

Funktionswert für Den Aufruf.

sms
Nullable<PhoneNumberCapabilityType>

Funktionswert für SMS.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

phoneNumber ist NULL.

Gilt für: