ReleaseEventListener Method (EventsListenerBase)
Releases event handlers not added using AddHandler.
Remarks
ReleaseEventListener is called by UFT at the end of the recording session.

Handlers added with AddHandler are released by the UFT infrastructure. Override ReleaseEventListener to release all other handlers.

public override void ReleaseEventListener() { UltraListBar oListBar = (UltraListBar)TargetControl; // This handler must be released manually. // It was added with "+=" in InitEventListener, so it is released here with "-=" oListBar.ItemSelected -= new ItemEventHandler(this.ItemSelected); }

Syntax
'Declaration
 
Public MustOverride Sub ReleaseEventListener() 
public abstract void ReleaseEventListener()