Compartilhar via


MessageTemplateClient.GetTemplates(String, CancellationToken) Método

Definição

Listar todos os modelos para determinado canal ACS.

public virtual Azure.Pageable<Azure.Communication.Messages.MessageTemplateItem> GetTemplates (string channelRegistrationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTemplates : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Communication.Messages.MessageTemplateItem>
override this.GetTemplates : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Communication.Messages.MessageTemplateItem>
Public Overridable Function GetTemplates (channelRegistrationId As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MessageTemplateItem)

Parâmetros

channelRegistrationId
String

A ID de registro do canal.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

Aplica-se a