ICoreWebView2Frame2.PostWebMessageAsString

Posts a message that is a simple string rather than a JSON string representation of a JavaScript object. This behaves in exactly the same manner as PostWebMessageAsJson, but the data property of the event args of the window.chrome.webview message is a string with the same value as webMessageAsString. Use this instead of PostWebMessageAsJson if you want to communicate using simple strings rather than JSON objects.

interface ICoreWebView2Frame2
HRESULT
PostWebMessageAsString
()

Meta