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
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho