Partager via


Attachment.SaveAsFile Method

Saves the attachment to the specified path.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Sub SaveAsFile ( _
    Path As String _
)
'Usage
Dim instance As Attachment
Dim Path As String

instance.SaveAsFile(Path)
[DispIdAttribute()]
void SaveAsFile(
    string Path
)

Parameters

  • Path
    Type: System.String

    The location at which to save the attachment.

See Also

Reference

Attachment Interface

Attachment Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Programmatically Remove Security Level 2 Attachments from Messages and Save Them to Disk