Udostępnij za pośrednictwem


OptOutsClient.Remove Method

Definition

Opts in to phone numbers to receive SMS from from phone number.

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

Parameters

from
String

The sender's phone number that is owned by the authenticated account.

to
IEnumerable<String>

The recipient's phone number which should be opted in.

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