Click or drag to resize

IExtensionHandlerGetExtensionResource Method

Version 102.0.100
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
Assembly:  CefSharp (in CefSharp.dll) Version: (
bool GetExtensionResource(
	IExtension extension,
	IBrowser browser,
	string file,
	IGetExtensionResourceCallback callback


Type: CefSharpIExtension
extension the call originates from
Type: CefSharpIBrowser
browser the call originates from
Type: SystemString
is the requested relative file path.
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