Share via


SmsMessage Constructors

Definition

Overloads

SmsMessage()

Initializes a new instance of the SmsMessage class.

SmsMessage(String, IEnumerable<String>)

Initializes a new instance of the SmsMessage class.

SmsMessage(String, String)

Initializes a new instance of the SmsMessage class.

SmsMessage()

Source:
Sms.shared.cs
Source:
Sms.shared.cs

Initializes a new instance of the SmsMessage class.

public:
 SmsMessage();
public SmsMessage ();
Public Sub New ()

Applies to

SmsMessage(String, IEnumerable<String>)

Source:
Sms.shared.cs
Source:
Sms.shared.cs

Initializes a new instance of the SmsMessage class.

public:
 SmsMessage(System::String ^ body, System::Collections::Generic::IEnumerable<System::String ^> ^ recipients);
public SmsMessage (string body, System.Collections.Generic.IEnumerable<string>? recipients);
new Microsoft.Maui.ApplicationModel.Communication.SmsMessage : string * seq<string> -> Microsoft.Maui.ApplicationModel.Communication.SmsMessage
Public Sub New (body As String, recipients As IEnumerable(Of String))

Parameters

body
String

The body text that is used to prefill the composed SMS message.

recipients
IEnumerable<String>

A collection of recipients that are added to the composed SMS message.

Remarks

Values in recipients that are null or whitespace are not added as recipients.

Applies to

SmsMessage(String, String)

Source:
Sms.shared.cs
Source:
Sms.shared.cs

Initializes a new instance of the SmsMessage class.

public:
 SmsMessage(System::String ^ body, System::String ^ recipient);
public SmsMessage (string body, string? recipient);
new Microsoft.Maui.ApplicationModel.Communication.SmsMessage : string * string -> Microsoft.Maui.ApplicationModel.Communication.SmsMessage
Public Sub New (body As String, recipient As String)

Parameters

body
String

The body text that is used to prefill the composed SMS message.

recipient
String

A single recipient that is added to the composed SMS message.

Applies to