Share via


CommunicationMessagesModelFactory.MessageReceipt(String, String) Method

Definition

Initializes a new instance of MessageReceipt.

public static Azure.Communication.Messages.MessageReceipt MessageReceipt (string messageId = default, string to = default);
static member MessageReceipt : string * string -> Azure.Communication.Messages.MessageReceipt
Public Shared Function MessageReceipt (Optional messageId As String = Nothing, Optional to As String = Nothing) As MessageReceipt

Parameters

messageId
String

The message id.

to
String

The native external platform user identifier of the recipient.

Returns

A new MessageReceipt instance for mocking.

Exceptions

messageId or to is null.

Applies to