Click or drag to resize

INetworkCanAccessFileHandler Property

Gets or sets a handler that is used when the Chromium engine is about to access the requested file. Can be used to disallow accessing the file.

Namespace:  DotNetBrowser.Net
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.13.0
Syntax
C#
IHandler<CanAccessFileParameters, CanAccessFileResponse> CanAccessFileHandler { get; set; }

Property Value

Type: IHandlerCanAccessFileParameters, CanAccessFileResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe INetwork object has already been disposed.
Remarks

Use the Can method to allow access to the file.

Use the Cannot method to disallow access to the file.

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

See Also