GetEventSession Method

GetEventSession Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns the requested interface on the OLE DB Session object under which the event is executing.

Applies To

IExStoreEventInfo Interface

Type Library

EXOLEDB Type Library

DLL Implemented In

EXOLEDB.DLL

Syntax

[Visual Basic]Sub GetEventSession
(
    ByVal riid As REFIID,     ByVal ppSession As Object
)

[C++]HRESULT GetEventSession (     REFIID riid,     IUnknown** ppSession );

Parameters

  • riid
    The interface identifier (IID) of the requested interface.
  • ppSession
    On successful return, the passed address contains an IUnknown object reference to the OLE DB Session object under which the event is executing.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method returns the requested interface on the OLE DB Session object under which the interface is executing. For synchronous events, the interface session executes within a local transaction. For an asynchronous event, the object is implicitly created using an IBindResource::Bind call. The object is created within the security context of the default user. Microsoft Access is limited to the interface item.

See the IExStoreDispEventInfo Interface for related methods for Microsoft Visual Basic and scripts.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.