Raised when OrdoWebView2 is performing a URL request to a
matching URL and resource context filter that was added with
Add_WebResourceRequestedFilter.
You
can allow or deny navigation to this URI by setting the
Permit variable.
Syntax
Private Sub object_WebResourceRequested(URI As String, FilterType As oWebView2ResourceFilter, Permit As oWebView2PermissionState)
The WebResourceRequested event syntax has these parts:
Element | Description |
Object | The object placeholder represents an OrdoWebView2 control |
URI | String. the web resource request. |
FilterType | oWebView2ResourceFilter, the web resource
request context. Filter_ALL = 0 Filter_DOCUMENT = 1 Filter_STYLESHEET = 2 Filter_IMAGE = 3 Filter_MEDIA = 4 Filter_FONT = 5 Filter_SCRIPT = 6 Filter_XML_HTTP_REQUEST = 7 Filter_FETCH = 8 Filter_TEXT_TRACK = 9 Filter_EVENT_SOURCE = 10 Filter_WEBSOCKET = 11 Filter_MANIFEST = 12 Filter_SIGNED_EXCHANGE = 13 Filter_PING = 14 Filter_CSP_VIOLATION_REPORT = 15 Filter_OTHER = 16 |
Permit |
oWebView2PermissionState, the response to the
request |