Editing and Deleting Events in an Enhancement Stream

[This is preliminary documentation and subject to change.]

After your application has added events to the enhancement stream, it may need to modify or delete these events. To do this, you must first locate the event as described in Locating an Event in the Enhancement Stream.

Once you have located the event, you can edit the event by changing the values of its properties. The following example retrieves the last-added event in a stream and changes its Timeout property to 15 seconds.

Set e = evs.LastAdd
e.Timeout = 15
 

For a complete list of the properties that you can edit, see EnhEvent.

To delete an event from the enhancement stream, locate the event and then call its EnhEvent.Delete method. This is demonstrated in the following example.

'TODO: locate event
'delete the event from the stream
e.Delete
 

You cannot access the event once it has been deleted. To verify the event was deleted, check that the EnhEvents.Count property is decremented.