Platform SDK: Exchange 2000 Server

IExStoreDispEventInfo::EventBinding

[This is preliminary documentation and subject to change.]

This method returns the event registration item that caused the event to fire on the given item.

[Visual Basic,VBScript]
Property EventBinding as Object
read-only
[C++]
HRESULT EventBinding( IDispatch **ppBinding);
[IDL]
[propget] HRESULT EventBinding(
   [out,retval] IDispatch **ppBinding
   );
ppBinding [C++,IDL]

On successful return, the passed address contains the registration item that triggered the event. This object can contain additional custom properties that define the context of the event.

Remarks

See The Registration Item

Example

[Visual Basic]
Private Sub IExStoreAsyncEvents_OnSave( _
  ByVal pEventInfo as ExevtsnkLib.IExStoreEventInfo, _
  ByVal bstrURLSource as String, _
  ByVal lFlags as Long _
)

  ' Get OA compatible interface
  Dim iDispEvtInfo as IExStoreDispEventInfo
  Set iDispEvtInfo = pEventInfo
  
  ' Get The registration item
  Dim iEvtBng as IEventBinding
  Set iEvtBng = iDispEvtInfo.EventBinding
  ' ...
End Sub