Mapi.deleteMail(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified message from the message store.
public:
virtual int deleteMail(System::String ^ _messageID);
public virtual int deleteMail (string _messageID);
abstract member deleteMail : string -> int
override this.deleteMail : string -> int
Public Overridable Function deleteMail (_messageID As String) As Integer
Parameters
- _messageID
- String
The unique message ID for the message to delete.
Returns
The status #SUCCESS_SUCCES or an error code, which can be found in the #MAPI macro.
Remarks
The message ID can be retrieved by using the findNext method.