Udostępnij za pośrednictwem


OptOutsClient.Check Method

Definition

Checks if to phone numbers are opted out from from phone number.

public virtual Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.Sms.Models.OptOutResponseItem>> Check (string from, System.Collections.Generic.IEnumerable<string> to, System.Threading.CancellationToken cancellationToken = default);
abstract member Check : string * seq<string> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.Sms.Models.OptOutResponseItem>>
override this.Check : string * seq<string> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.Sms.Models.OptOutResponseItem>>
Public Overridable Function Check (from As String, to As IEnumerable(Of String), Optional cancellationToken As CancellationToken = Nothing) As 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