OptOutsClient.CheckAsync 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.
Checks if to
phone numbers are opted out from from
phone number.
public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.Sms.Models.OptOutResponseItem>>> CheckAsync (string from, System.Collections.Generic.IEnumerable<string> to, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckAsync : string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.Sms.Models.OptOutResponseItem>>>
override this.CheckAsync : string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.Sms.Models.OptOutResponseItem>>>
Public Overridable Function CheckAsync (from As String, to As IEnumerable(Of String), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of OptOutResponseItem)))
Parameters
- from
- String
The sender's phone number that is owned by the authenticated account.
- to
- IEnumerable<String>
The recipient's phone number.
- cancellationToken
- CancellationToken
The cancellation token for the task.
Returns
Exceptions
The server returned an error. See Message for details returned from the server.
to
is null.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET