Udostępnij za pośrednictwem


SmsModelFactory.SmsSendResult(String, String, Int32, Boolean, String) Method

Definition

Initializes a new instance of SmsSendResult.

public static Azure.Communication.Sms.SmsSendResult SmsSendResult (string to, string messageId, int httpStatusCode, bool successful, string errorMessage);
static member SmsSendResult : string * string * int * bool * string -> Azure.Communication.Sms.SmsSendResult
Public Shared Function SmsSendResult (to As String, messageId As String, httpStatusCode As Integer, successful As Boolean, errorMessage As String) As SmsSendResult

Parameters

to
String

The recipient's phone number in E.164 format.

messageId
String

The identifier of the outgoing Sms message. Only present if message processed.

httpStatusCode
Int32

HTTP Status code.

successful
Boolean

Indicates if the message is processed successfully or not.

errorMessage
String

Optional error message in case of 4xx/5xx/repeatable errors.

Returns

Applies to