BlazorWebView.WebResourceRequested Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when a web resource is requested. This event allows the application to intercept the request and provide a custom response. The event handler can set the Handled property to true to indicate that the request has been handled and no further processing is needed. If the event handler does set this property to true, it must also call the SetResponse(Int32, String, IReadOnlyDictionary<String,String>, Stream) or SetResponse(Int32, String, IReadOnlyDictionary<String,String>, Task<Stream>) method to provide a response to the request.
public:
event EventHandler<Microsoft::Maui::Controls::WebViewWebResourceRequestedEventArgs ^> ^ WebResourceRequested;
public event EventHandler<Microsoft.Maui.Controls.WebViewWebResourceRequestedEventArgs>? WebResourceRequested;
member this.WebResourceRequested : EventHandler<Microsoft.Maui.Controls.WebViewWebResourceRequestedEventArgs>
Public Event WebResourceRequested As EventHandler(Of WebViewWebResourceRequestedEventArgs)