EnhEvent.Handle

[This is preliminary documentation and subject to change.]

The Handle property is a unique identifier for the event. This property is read-only.

Syntax

[ lhandle = ] object.Handle 
 

Parts

object
Object expression that resolves to an EnhEvent object.
lhandle
Long that uniquely identifies the event.

Remarks

EnhEvents.FindHandle searches the EnhEvents collection to return the event with the specified handle.

Examples

The following example uses EnhEvent.Handle to save a handle to an event in the enhancement stream, and then uses EnhEvents.FindHandle to recall the event.

'Declare variables
Dim Ev As IEnhEvents
Dim e As IEnhEvent
Dim lHandle As Long
 
'create the collection
Set Ev = New EnhEvents
 
'add an event to the collection
Ev.Add 15, "EventA"
 
'save a handle to EventA, 
'(which is currently the last-added event)
lHandle = Ev.LastAdd.Handle
 
... 
 
'recall EventA from the collection using the previously-saved handle
Set e = Ev.FindHandle(lHandle)
 

QuickInfo

  Windows NT: Unsupported.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in stream.idl.
  Import Library: Included as a resource in stream.dll.
  Unicode: Yes.