Mercury.QTP.CustomServer Namespace > EventsListenerBase Class : ReleaseEventListener Method |
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); }
'Declaration
Public MustOverride Sub ReleaseEventListener()
public abstract void ReleaseEventListener()