MapiMessageDestroyAttachments Method

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

Namespace:  Aspose.Email.Mapi
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public static void DestroyAttachments(
	string path
)

Parameters

path
Type: SystemString
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