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
Syntaxpublic static void DestroyAttachments(
string path
)
Public Shared Sub DestroyAttachments (
path As String
)
public:
static void DestroyAttachments(
String^ path
)
static member DestroyAttachments :
path : string -> unit
Parameters
- path
- Type: SystemString
The name of the Outlook Message file.
ExamplesThe following exmaple demonstrates how to destroy attachments in Outlook Message files.
[C#]
MapiMessage.DestroyAttachment(@"c:\outlookmessage.msg");
[Visual Basic]
'Destroy attachments from Outlook Message files
MapiMessage.DestroyAttachment("c:\outlookmessage.msg")
See Also