共用方式為


CoreWebView2Notification.CloseRequested Event

Definition

This event is raised when the notification is closed by the web code, such as through notification.close().

public event EventHandler<object> CloseRequested;
member this.CloseRequested : EventHandler<obj> 
Public Custom Event CloseRequested As EventHandler(Of Object) 

Event Type

Remarks

You don't need to call ReportClosed() since this is coming from the web code.

Applies to