IEmail.ComposeAsync(EmailMessage) 方法

定义

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

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

参数

message
EmailMessage

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

返回

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

适用于