Data Property

Topic Last Modified: 2006-06-13

The Data property handles in-memory data that is stored between the begin phase and the commit/abort phase of synchronous events.

Applies To

IExStoreDispEventInfo Interface

Type Library

EXOLEDB Type Library

DLL Implemented In

EXOLEDB.DLL

Syntax

Property Data As Long
HRESULT get_Data(LONG_PTR* plData);HRESULT put_Data(LONG_PTR plData);

Parameters

  • plData
    A pointer to the memory when getting; the memory itself when putting.
  • plData
    Sets the value of the Data property to the value of the LONG_PTR.

Remarks

This property is 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.

See SetData Method and GetData Method for related methods.

Example

Here is how you would use this from a Microsoft® Visual Basic® event sink:


Private Sub IExStoreSyncEvents_OnSyncSave( _
        ByVal pEventInfo As Exoledb.IExStoreEventInfo, _
        ByVal bstrURLItem As String, _
        ByVal lFlags As Long)

    Dim DispInfo As IExStoreDispEventInfo
    Dim lValue as long
    Set DispInfo = pEventInfo
    ...
    'In the begin phase you set data as follows
    DispInfo.Data = lValue

    'In the commit phase you get the data as follows
    lValue = DispInfo.Data

End Sub