Platform SDK: SMTP Server Events

IMailMsgQueueMgmt::Delete

[This is preliminary documentation and subject to change.]

Delete the backing store for the MailMsg object with optional asynchronous completion.

HRESULT Delete([in,unique] IMailMsgNotify *pNotify);
pNotify
Interface to notify for asynchronous completion. If this value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING).

Return Values

Value Description
S_OK Success. The method completed synchronously.
MAILMSG_S_PENDING Success. The operation will complete asynchronously. When it completes, you will be notified through the interface you passed using the pNotify parameter. The result of the operation will be returned with the notification callback method.

See Also

IMailMsgNotify Interface

IMailMsgNotify.Notify