EmailExtensions.ComposeAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ComposeAsync(IEmail) |
開啟預設電子郵件用戶端,讓使用者傳送訊息。 |
ComposeAsync(IEmail, String, String, String[]) |
開啟預設的電子郵件用戶端,讓用戶能夠傳送包含所提供主旨、本文和收件者的郵件。 |
ComposeAsync(IEmail)
開啟預設電子郵件用戶端,讓使用者傳送訊息。
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
參數
- IEmail
叫用這個方法的物件。
傳回
Task具有異步操作目前狀態的物件。
適用於
ComposeAsync(IEmail, String, String, String[])
開啟預設的電子郵件用戶端,讓用戶能夠傳送包含所提供主旨、本文和收件者的郵件。
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
參數
- IEmail
叫用這個方法的物件。
- subject
- String
電子郵件主旨。
- body
- String
電子郵件本文。
- to
- String[]
電子郵件收件者。
傳回
Task具有異步操作目前狀態的物件。