EmailExtensions.ComposeAsync 方法

定义

重载

ComposeAsync(IEmail)

打开默认电子邮件客户端,以允许用户发送邮件。

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

打开默认电子邮件客户端,以允许用户使用提供的主题、正文和收件人发送邮件。

ComposeAsync(IEmail)

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

打开默认电子邮件客户端,以允许用户发送邮件。

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

参数

email
IEmail

调用此方法的对象。

返回

具有 Task 异步操作的当前状态的对象。

适用于

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

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

打开默认电子邮件客户端,以允许用户使用提供的主题、正文和收件人发送邮件。

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

参数

email
IEmail

调用此方法的对象。

subject
String

电子邮件主题。

body
String

电子邮件正文。

to
String[]

电子邮件收件人。

返回

具有 Task 异步操作的当前状态的对象。

适用于