_MailItem.Close Method
Closes and optionally saves changes to the Outlook item.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Sub Close ( _
SaveMode As OlInspectorClose _
)
'Usage
Dim instance As _MailItem
Dim SaveMode As OlInspectorClose
instance.Close(SaveMode)
[DispIdAttribute()]
void Close(
OlInspectorClose SaveMode
)
Parameters
SaveMode
Type: Microsoft.Office.Interop.Outlook.OlInspectorCloseThe close behavior. If the item displayed within the inspector has not been changed, this argument has no effect.