Email.ComposeAsync 方法

定义

重载

ComposeAsync()

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

ComposeAsync(EmailMessage)

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

ComposeAsync(String, String, String[])

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

ComposeAsync()

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

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

public:
 static System::Threading::Tasks::Task ^ ComposeAsync();
public static System.Threading.Tasks.Task ComposeAsync ();
static member ComposeAsync : unit -> System.Threading.Tasks.Task
Public Shared Function ComposeAsync () As Task

返回

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

适用于

ComposeAsync(EmailMessage)

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

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

public:
 static System::Threading::Tasks::Task ^ ComposeAsync(Microsoft::Maui::ApplicationModel::Communication::EmailMessage ^ message);
public static System.Threading.Tasks.Task ComposeAsync (Microsoft.Maui.ApplicationModel.Communication.EmailMessage message);
static member ComposeAsync : Microsoft.Maui.ApplicationModel.Communication.EmailMessage -> System.Threading.Tasks.Task
Public Shared Function ComposeAsync (message As EmailMessage) As Task

参数

message
EmailMessage

EmailMessage包含要撰写的电子邮件详细信息的 实例。

返回

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

适用于

ComposeAsync(String, String, String[])

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

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

public:
 static System::Threading::Tasks::Task ^ ComposeAsync(System::String ^ subject, System::String ^ body, ... cli::array <System::String ^> ^ to);
public static System.Threading.Tasks.Task ComposeAsync (string subject, string body, params string[] to);
static member ComposeAsync : string * string * string[] -> System.Threading.Tasks.Task
Public Shared Function ComposeAsync (subject As String, body As String, ParamArray to As String()) As Task

参数

subject
String

电子邮件主题。

body
String

电子邮件正文。

to
String[]

电子邮件收件人。

返回

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

适用于