CoreWebView2ServiceWorker Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public class CoreWebView2ServiceWorker
type CoreWebView2ServiceWorker = class
Public Class CoreWebView2ServiceWorker
- Inheritance
-
CoreWebView2ServiceWorker
Properties
| ScriptUri |
A string representing the Uri of the script that the worker is executing.
|
Methods
| PostWebMessageAsJson(String) |
Posts the specified webMessageAsJson to this worker.
The worker receives the message by subscribing to the
|
| PostWebMessageAsString(String) |
Posts a message that is a simple string rather than a JSON string
representation of a JavaScript object. This behaves exactly the same
manner as |
Events
| Destroying |
Add an event handler for the
|
| WebMessageReceived |
Add an event handler for the
|