Platform SDK: Exchange Server |
The Session object is the MAPI session that this Events object works with. You need to store a reference to this object, using the Set keyword, before taking any other actions. For example:
Set MAPISession = CreateObject("MAPI.Session") MAPISession.Logon Set Events.Session = MAPISession
You can see the session object used in a similar way in Sample Code: Enabling a Folder for Routing.