MAPIOBJECT Property (Session Object)

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

Syntax

objSession.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 IMAPISession 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.