Contents - Index


OnWebMessageReceived

 

Type: Event

Parameters:  String URI String MessageAsJson String MessageAsString

 

 

Raised when the WebMessageEnabled setting is set and the top-level document of the top level frame uses javascript postMessage to send a message via the window.chrome.webview.postMessage mechanism.

If postMessage is used to send a JSON value, then the string is empty.

 

You do need to enable the WebMessageEnabled property if you want to process this event.

 

See also CoreWebView2.WebMessageReceived Event.