Share via


Data Property

Data Property

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.

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

[Visual Basic]Property Data As Long

[C++]HRESULT get_Data(LONG_PTRplData);
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:

[Visual Basic]

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

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.