Click or drag to resize

RequestContextExtensionsLoadExtensionsFromDirectory Method

Version 98.1.210
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: 98.1.210.0 (98.1.210.0)
Syntax
public static void LoadExtensionsFromDirectory(
	this IRequestContext requestContext,
	string rootDirectory,
	IExtensionHandler handler
)

Parameters

requestContext
Type: CefSharpIRequestContext
request context
rootDirectory
Type: SystemString
absolute path to the directory that contains the extension(s) to be loaded.
handler
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