次の方法で共有


_MailItem.SaveAs Method

Saves the Microsoft Outlook item to the specified path and in the format of the specified file type. If the file type is not specified, the MSG format (.msg) is used.

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

Syntax

'Declaration
<DispIdAttribute()> _
Sub SaveAs ( _
    Path As String, _
    Type As Object _
)
'Usage
Dim instance As _MailItem
Dim Path As String
Dim Type As Object

instance.SaveAs(Path, Type)
[DispIdAttribute()]
void SaveAs(
    string Path,
    Object Type
)

Parameters

Remarks

Also note that even though olDoc is a valid OlSaveAsType constant, messages in HTML format cannot be saved in Document format, and the olDoc constant works only if Microsoft Word is set up as the default email editor.

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace