_Application.MailSession Property

Returns the MAPI mail session number as a hexadecimal string (if there's an active session), or returns Null if there's no session.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property MailSession As Object
    Get
'Usage
Dim instance As _Application
Dim value As Object

value = instance.MailSession
Object MailSession { get; }

Property Value

Type: System.Object

Remarks

This property applies only to mail sessions created by Microsoft Excel (it doesn't return a mail session number for Microsoft Mail).

This property isn't used on PowerTalk mail systems.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace