Compartilhar via


CoreWebView2WebResourceRequestedEventArgs Class

Event args for the CoreWebView2.WebResourceRequested event.

Summary

Members Description
Request Gets the web resource request.
RequestedSourceKind Gets the source of web resource request.
ResourceContext Gets the web resource request context.
Response Gets or sets the CoreWebView2WebResourceResponse object.
GetDeferral Gets a Deferral object and put the event into a deferred state.

Properties

Request

readonly CoreWebView2WebResourceRequest Request

Gets the web resource request. The request object may be missing some headers that are added by network stack at a later time.

RequestedSourceKind

readonly CoreWebView2WebResourceRequestSourceKinds RequestedSourceKind

Gets the source of web resource request.

ResourceContext

readonly CoreWebView2WebResourceContext ResourceContext

Gets the web resource request context.

Response

CoreWebView2WebResourceResponse Response

Gets or sets the CoreWebView2WebResourceResponse object. If this object is set, the CoreWebView2.WebResourceRequested event will be completed with this Response. An empty CoreWebView2WebResourceResponse object can be created with CoreWebView2Environment.CreateWebResourceResponse and then modified to construct the Response.

Methods

GetDeferral

Deferral GetDeferral()

Gets a Deferral object and put the event into a deferred state. Use this to Complete the event at a later time.

Referenced by