CWebView2.RemoveWebMessageReceivedmethod
Remove an event handler previously added with AddWebMessageReceived.
Syntax
FUNCTION RemoveWebMessageReceived (BYVAL token AS EventRegistrationToken) AS HRESULT
Also documented as
AddWebMessageReceived — one description covers them all.Parameters
| Name | Description | |
|---|---|---|
eventHandler | Pointer to an ICoreWebView2WebMessageReceivedEventHandler. | |
token | Token that uniquely identifies the subscription. |
Description
Adds/removes an event handler for the WebMessageReceived event.
Reference
- Defined in AfxNova/CWebView2.inc:1411
- Documented in WebView/CWebWiew2 Class.md
- Topic: CWebView2 Class