DestroyAttachments

MapiMessage.DestroyAttachments method

Destroies the attachments in the specified Outlook Message files. DestroyAttachments will ignore the attachment parsing.

public static void DestroyAttachments(string path)
Parameter Type Description
path String The name of the Outlook Message file.

Examples

The following exmaple demonstrates how to destroy attachments in Outlook Message files.

[C#]

//Destroy attachments from Outlook Message files
MapiMessage.DestroyAttachment(@"c:\outlookmessage.msg");

[Visual Basic]

'Destroy attachments from Outlook Message files
MapiMessage.DestroyAttachment("c:\outlookmessage.msg")

See Also