EmailExtensions.ComposeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- 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.