GetEventSession Method
Topic Last Modified: 2006-06-13
Returns the requested interface on the OLE DB Session object under which the event is executing.
Applies To
Type Library
EXOLEDB Type Library
DLL Implemented In
EXOLEDB.DLL
Syntax
Sub GetEventSession( ByVal riid As REFIID,
ByVal ppSession As Object)
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.