Click or drag to resize

RequestContextExtensionsLoadExtensionFromDirectory Method

Version 81.3.100
Load an extension from the given directory. To load a crx file you must unzip it first. For further details see

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 81.3.100.0 (81.3.100.0)
Syntax
public static void LoadExtensionFromDirectory(
	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 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