Compartilhar via


SipRoutingClient.SetRoutesAsync Método

Definição

Defina a configuração de roteamento SIP para o recurso. Outras configurações não são afetadas.

public virtual System.Threading.Tasks.Task<Azure.Response> SetRoutesAsync (System.Collections.Generic.IReadOnlyList<Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute> routes, System.Threading.CancellationToken cancellationToken = default);
abstract member SetRoutesAsync : System.Collections.Generic.IReadOnlyList<Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SetRoutesAsync : System.Collections.Generic.IReadOnlyList<Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SetRoutesAsync (routes As IReadOnlyList(Of SipTrunkRoute), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parâmetros

routes
IReadOnlyList<SipTrunkRoute>

Nova lista de SipTrunkRoute.

cancellationToken
CancellationToken

Token de cancelamento opcional.

Retornos

Aplica-se a