Share via


EmailExtensions.ComposeAsync Method

Definition

Overloads

ComposeAsync(IEmail)

Opens the default email client to allow the user to send the message.

ComposeAsync(IEmail, String, String, String[])

Opens the default email client to allow the user to send the message with the provided subject, body, and recipients.

ComposeAsync(IEmail)

Source:
Email.shared.cs
Source:
Email.shared.cs

Opens the default email client to allow the user to send the message.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ComposeAsync(Microsoft::Maui::ApplicationModel::Communication::IEmail ^ email);
public static System.Threading.Tasks.Task ComposeAsync (this Microsoft.Maui.ApplicationModel.Communication.IEmail email);
static member ComposeAsync : Microsoft.Maui.ApplicationModel.Communication.IEmail -> System.Threading.Tasks.Task
<Extension()>
Public Function ComposeAsync (email As IEmail) As Task

Parameters

email
IEmail

The object this method is invoked on.

Returns

A Task object with the current status of the asynchronous operation.

Applies to

ComposeAsync(IEmail, String, String, String[])

Source:
Email.shared.cs
Source:
Email.shared.cs

Opens the default email client to allow the user to send the message with the provided subject, body, and recipients.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ComposeAsync(Microsoft::Maui::ApplicationModel::Communication::IEmail ^ email, System::String ^ subject, System::String ^ body, ... cli::array <System::String ^> ^ to);
public static System.Threading.Tasks.Task ComposeAsync (this Microsoft.Maui.ApplicationModel.Communication.IEmail email, string subject, string body, params string[] to);
static member ComposeAsync : Microsoft.Maui.ApplicationModel.Communication.IEmail * string * string * string[] -> System.Threading.Tasks.Task
<Extension()>
Public Function ComposeAsync (email As IEmail, subject As String, body As String, ParamArray to As String()) As Task

Parameters

email
IEmail

The object this method is invoked on.

subject
String

The email subject.

body
String

The email body.

to
String[]

The email recipients.

Returns

A Task object with the current status of the asynchronous operation.

Applies to