Click or drag to resize

RequestContextExtensionsLoadExtensionsFromDirectory Method

Version 94.4.20
Load extension(s) from the given directory. This methods obtains all the sub directories of rootDirectory and calls LoadExtension(String, String, IExtensionHandler) if manifest.json is found in the sub folder. To load crx file(s) you must unzip them first. For further details see

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: (
public static void LoadExtensionsFromDirectory(
	this IRequestContext requestContext,
	string rootDirectory,
	IExtensionHandler handler


Type: CefSharpIRequestContext
request context
Type: SystemString
absolute path to the directory that contains the extension(s) to be loaded.
Type: CefSharpIExtensionHandler
handle events related to browser extensions

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IRequestContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also