IPersistMessage : IUnknown

Applies to: Outlook 2013 | Outlook 2016

Enables form viewers to handle the storage of a form and to transition between the various states.

Property Value
Header file:
Mapiform.h
Exposed by:
Persist message objects
Implemented by:
Form objects
Called by:
Form viewers
Interface identifier:
IID_IPersistMessage
Pointer type:
LPPERSISTMESSAGE

Vtable order

Member Description
GetLastError
Returns a MAPIERROR structure that contains information about the previous error in the form object.
GetClassID
Returns an identifier that represents the form server that can manage the form.
IsDirty
Checks the form for changes that were made since the last save.
InitNew
Initializes a new message.
Load
Loads the form for a specified message.
Save
Saves a revised form back to the message from which it was loaded or created.
SaveCompleted
Notifies the form that a save operation has been completed.
HandsOffMessage
Causes the form to release its current message.

Remarks

All forms are required to implement the IPersistMessage interface.

IPersistMessage works similarly to the OLE IPersistStorage interface. For more information, see the IPersistStorage methods.

See also

MAPI Interfaces