Session
Object
The Session
object contains session-wide settings and options. It also contains properties
that return top-level objects, such as CurrentUser.
Quick Info
|
Specified
in header file: |
MDISP.ODL |
|
First
available in version: |
OLE
Messaging Library 1.0 |
|
Parent
objects: |
(none) |
|
Child
objects: |
AddressLists collection |
|
Default
property: |
Name |
Properties
|
|
Available
in version |
|
|
|
AddressLists |
1.1 |
AddressList
object or AddressLists collection object |
Read-only |
|
Application |
1.0 |
String |
Read-only |
|
Class |
1.0 |
Long |
Read-only |
|
CurrentUser |
1.0 |
AddressEntry
object |
Read-only |
|
|
|
|
|
|
Inbox |
1.0 |
Folder
object |
Read-only |
|
InfoStores |
1.0 |
InfoStores
object |
Read-only |
|
MAPIOBJECT |
1.0 |
Object |
Read/write
(Note: Not available to Visual Basic applications.) |
|
Name |
1.0 |
String |
Read-only |
|
OperatingSystem |
1.0 |
String |
Read-only |
|
Outbox |
1.0 |
Folder
object |
Read-only |
|
Parent |
1.0 |
Object; set
to Nothing |
Read-only |
|
Session |
1.0 |
Object; set
to Nothing |
Read-only |
|
Version |
1.0 |
String |
Read-only |
Methods
|
|
Available
in version |
|
|
AddressBook |
1.0 |
(optional)
recipients as Object, |
|
|
|
|
|
CompareIDs |
1.1 |
ID1 as
Object, |
|
DeliverNow |
1.1 |
(none) |
|
GetAddressEntry |
1.0 |
entryID as
String |
|
GetFolder |
1.0 |
folderID as
String, |
|
|
|
|
|
GetInfoStore |
1.0 |
storeID as
String |
|
GetMessage |
1.0 |
messageID
as String, |
|
Logoff |
1.0 |
(none) |
|
Logon |
1.0 |
(optional)
profileName as String, |
Remarks
A Session
object is considered a top-level object, meaning it can be created directly
from a Visual Basic program. The following sample code fragment creates a
Session object through early binding:
Dim objSession as MAPI.Session
objSession.Logon
The following
sample code fragment creates a Session object through late binding:
Dim objSession As Object
Set objSession = CreateObject ( MAPI.Session )
objSession.Logon
After you
create a new Session object, use the Logon method to initiate a session with MAPI.