StandardControl.destroy
This method is invoked when the component is to be removed from the DOM tree. Use it for the cleanup and to release any memory that the component is using.
Available for
Model-driven apps, canvas apps, & portals.
Syntax
destroy()
Example
public destroy(): void
{
this.button.removeEventListener("click", this.onButtonClick);
}
Related articles
Control
Power Apps component framework API reference
Power Apps component framework overview
Comentários
https://aka.ms/ContentUserFeedback.
Brevemente: Ao longo de 2024, vamos descontinuar progressivamente o GitHub Issues como mecanismo de feedback para conteúdos e substituí-lo por um novo sistema de feedback. Para obter mais informações, veja:Submeter e ver comentários