CoreWebView2WebMessageReceivedEventArgs Class

Event args for the CoreWebView2.WebMessageReceived event.

Summary

Members Description
Source Gets the URI of the document that sent this web message.
WebMessageAsJson Gets the message posted from the WebView content to the host converted to a JSON string.
TryGetWebMessageAsString Gets the message posted from the WebView content to the host as a string.

Properties

Source

readonly string Source

Gets the URI of the document that sent this web message.

WebMessageAsJson

readonly string WebMessageAsJson

Gets the message posted from the WebView content to the host converted to a JSON string. Run this operation to communicate using JavaScript objects.

Methods

TryGetWebMessageAsString

string TryGetWebMessageAsString()

Gets the message posted from the WebView content to the host as a string. Run this operation to communicate using simple strings.

Referenced by