Skip to content

RemoveWebResourceRequestedFilter - cWebView2Browser

Removes a resource request filter that was previously set up using AddWebResourceRequestedFilter

Type: Procedure

Parameters

Parameter Type Description
sUrl String URL filter pattern determining which requests will be filtered. The * wildcard can be used to match multiple URLs. Using "*" will match any URLs.
optResourceContext OLECOREWEBVIEW2_WEB_RESOURCE_CONTEXT (optional) The resource types that need to be filtered (OLECOREWEBVIEW2_WEB_RESOURCE_CONTEXT_ALL for everything).

Syntax

Procedure RemoveWebResourceRequestedFilter String sUrl OLECOREWEBVIEW2_WEB_RESOURCE_CONTEXT optResourceContext

Call Example

Send RemoveWebResourceRequestedFilter sUrl optResourceContext

Description

Removes a resource request filter that was previously set up using AddWebResourceRequestedFilter.

Use the same parameters to remove that specific filter.