DotNetBrowser  1.13
Public Member Functions | List of all members
DotNetBrowser.ResourceHandler Interface Reference

Allows handling process of loading resources such as HTML, images, JavaScript, CSS files, etc. You can use this handler to cancel loading specified resources. For example, you can tell web browser engine not to load images or HTML from a specified URL. More...

Inherited by DotNetBrowser.DefaultResourceHandler.

Public Member Functions

bool CanLoadResource (ResourceParams resourceParams)
 Invoked when native engine decides whether specified resource should be requested from web server and loaded. More...
 

Detailed Description

Allows handling process of loading resources such as HTML, images, JavaScript, CSS files, etc. You can use this handler to cancel loading specified resources. For example, you can tell web browser engine not to load images or HTML from a specified URL.

Member Function Documentation

bool DotNetBrowser.ResourceHandler.CanLoadResource ( ResourceParams  resourceParams)

Invoked when native engine decides whether specified resource should be requested from web server and loaded.

If this method throws an exception, then default behavior will be used - the resource will be loaded.

Parameters
resourceParamsinformation about resource.
Returns
false to cancel resource loading.

Implemented in DotNetBrowser.DefaultResourceHandler.