Platform SDK: CDO 1.2.1

MAPIOBJECT Property (Message Object)

The MAPIOBJECT property returns an IUnknown pointer to the Message object. Not available to Microsoft® Visual Basic® applications. Read/write.

Syntax

objMessage.MAPIOBJECT

Data Type

Variant (vbDataObject format)

Remarks

The MAPIOBJECT property is not available to Visual Basic programs. It is accessible only by C/C++ programs that deal with IUnknown objects. Visual Basic supports the IDispatch interface and not IUnknown. The MAPIOBJECT property is an IUnknown object that returns an IMessage interface in response to QueryInterface. For more information, see Introduction to Automation and How Programmable Objects Work. Also see the "COM and ActiveX Object Services" section of the Microsoft Platform SDK.

If your application uses any MAPIOBJECT or RawTable properties, it must Release them all before calling the Session object's Logoff method. Failure to do so can result in unexpected behavior.

The MAPIOBJECT property does not correspond to a MAPI property and cannot be rendered into HTML hypertext by the CDO Rendering Library.