Compartilhar via


_MobileItem.SaveAs Method

Saves the Microsoft Outlook item to the specified path and in the format of the specified file type.

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 _MobileItem
Dim Path As String
Dim Type As Object

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

Parameters

  • Type
    Type: System.Object

    The file type to save. Can be one of the following OlSaveAsType constants: olHTML, olMHTML, olMSG, or olTXT.

Remarks

If the file type is not specified, olMSG is used.

If the type is an unsupported format, the SaveAs method returns an error.

See Also

Reference

_MobileItem Interface

_MobileItem Members

Microsoft.Office.Interop.Outlook Namespace