共用方式為


EmailDataProviderConnection.DownloadAttachmentRequested 事件

定義

發生于電子郵件用戶端要求從伺服器下載附件時。

// Register
event_token DownloadAttachmentRequested(TypedEventHandler<EmailDataProviderConnection, EmailMailboxDownloadAttachmentRequestEventArgs const&> const& handler) const;

// Revoke with event_token
void DownloadAttachmentRequested(event_token const* cookie) const;

// Revoke with event_revoker
EmailDataProviderConnection::DownloadAttachmentRequested_revoker DownloadAttachmentRequested(auto_revoke_t, TypedEventHandler<EmailDataProviderConnection, EmailMailboxDownloadAttachmentRequestEventArgs const&> const& handler) const;
public event TypedEventHandler<EmailDataProviderConnection,EmailMailboxDownloadAttachmentRequestEventArgs> DownloadAttachmentRequested;
function onDownloadAttachmentRequested(eventArgs) { /* Your code */ }
emailDataProviderConnection.addEventListener("downloadattachmentrequested", onDownloadAttachmentRequested);
emailDataProviderConnection.removeEventListener("downloadattachmentrequested", onDownloadAttachmentRequested);
- or -
emailDataProviderConnection.ondownloadattachmentrequested = onDownloadAttachmentRequested;
Public Custom Event DownloadAttachmentRequested As TypedEventHandler(Of EmailDataProviderConnection, EmailMailboxDownloadAttachmentRequestEventArgs) 

事件類型

Windows 需求

應用程式功能
email emailSystem

適用於