IUserData Interface

Topic Last Modified: 2006-06-13

This interface is used to persist data for the duration of the synchronous event (from the begin phase to the commit/abort phase).

Type Library

EXOLEDB Type Library

EXOLEDB Event Sink Type Library

DLL Implemented In

EXOLEDB.DLL, EXEVTSNK.TLB

Member Summary

The following table lists the methods of the IUserData interface.

Name Description

GetData

This method retrieves a pointer to data that was set with SetData Method.

SetData

This method sets data into memory that can be retrieved later using GetData Method.

Remarks

These methods are to be used with synchronous events where you want to save data during the begin phase and retrieve the data during the commit/abort phase.

IUserData is not a dual interface. See the IExStoreDispEventInfo Interface for equivalent methods for Microsoft® Visual Basic® and scripts. Visual Basic and Visual Basic Scripting Edition (VBScript) programmers who want to use this interface can also add a reference to the EXOLEDB Event Sink Type Library (EXEVTSNK.TLB). EXEVTSNK.TLB is downloaded with the Exchange Server 2003 Software Development Kit (SDK) to the \Program Files\Exchange SDK\SDK\Support\OLEDB\ directory.