Help Center

CWebView2.AddPermissionRequestedmethod

Add an event handler for the PermissionRequested event.

WebViewmethoddocumented

Syntax

FUNCTION AddPermissionRequested ( BYVAL eventHandler AS Afx_ICoreWebView2PermissionRequestedEventHandler PTR, BYVAL token AS EventRegistrationToken PTR) AS HRESULT
Also documented as RemovePermissionRequested — one description covers them all.

Parameters

NameDescription
eventHandlerPointer to an ICoreWebView2PermissionRequestedEventHandler.
tokenToken that uniquely identifies the subscription.

Description

Adds/removes an event handler for the PermissionRequested event.

Reference

  • Defined in AfxNova/CWebView2.inc:1368
  • Documented in WebView/CWebWiew2 Class.md
  • Topic: CWebView2 Class