Click or drag to resize

ExtensionHandlerGetExtensionResource Method

Version 112.3.0
Called to retrieve an extension resource that would normally be loaded from disk (e.g. if a file parameter is specified to chrome.tabs.executeScript). Localization substitutions will not be applied to resources handled via this method.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 112.3.0.0 (112.3.0.0)
Syntax
protected virtual bool GetExtensionResource(
	IExtension extension,
	IBrowser browser,
	string file,
	IGetExtensionResourceCallback callback
)

Parameters

extension
Type: CefSharpIExtension
extension the call originates from
browser
Type: CefSharpIBrowser
browser the call originates from
file
Type: SystemString
is the requested relative file path.
callback
Type: CefSharpIGetExtensionResourceCallback
callback used to handle custom resource requests

Return Value

Type: Boolean
To handle the resource request return true and execute callback either synchronously or asynchronously. For the default behavior which reads the resource from the extension directory on disk return false
See Also