Previous topicNext topic
Help > Methods >
Remove_WebResourceRequestedFilter

Remove_WebResourceRequestedFilter Method

Removes a matching WebResource filter that was previously added for the WebResourceRequested event.

Syntax

object.Remove_WebResourceRequestedFilter(strFilter As String, [FilterContext As oWebView2ResourceFilter])

The Remove_WebResourceRequestedFilter method syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control
strFilter

String, The strFilter to remove.    

FilterContext

oWebView2ResourceFilter The resource context filter associated with the strFilter to delete
    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