WebView2.CoreWebView2Initialized Evento
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Se produce cuando se inicializa el objeto WebView2.
// Register
event_token CoreWebView2Initialized(TypedEventHandler<WebView2, CoreWebView2InitializedEventArgs const&> const& handler) const;
// Revoke with event_token
void CoreWebView2Initialized(event_token const* cookie) const;
// Revoke with event_revoker
WebView2::CoreWebView2Initialized_revoker CoreWebView2Initialized(auto_revoke_t, TypedEventHandler<WebView2, CoreWebView2InitializedEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView2,CoreWebView2InitializedEventArgs> CoreWebView2Initialized;
function onCoreWebView2Initialized(eventArgs) { /* Your code */ }
webView2.addEventListener("corewebview2initialized", onCoreWebView2Initialized);
webView2.removeEventListener("corewebview2initialized", onCoreWebView2Initialized);
- or -
webView2.oncorewebview2initialized = onCoreWebView2Initialized;
Public Custom Event CoreWebView2Initialized As TypedEventHandler(Of WebView2, CoreWebView2InitializedEventArgs)