Click or drag to resize

INetworkLoadResourceHandler Property

Gets or sets a handler that is used to determine whether a resource (HTML, image, JavaScript, CSS file, etc.) should be downloaded from a web server.

Namespace:  DotNetBrowser.Net
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.0.0
Syntax
C#
IHandler<LoadResourceParameters, LoadResourceResponse> LoadResourceHandler { get; set; }

Property Value

Type: IHandlerLoadResourceParameters, LoadResourceResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe INetwork object has already been disposed.
Remarks

Use the Continue method to allow loading the resource.

Use the Cancel method to disallow loading the resource.

If exception occurs inside the handler, the default behavior will be applied - the Continue method will be used.

See Also