Table of Contents

Method Install

Namespace
DotNetBrowser.Extensions
Assembly
DotNetBrowser.dll

Install(string)

Installs an extension from the local CRX file by the given path.

Task<IExtension> Install(string path)

Parameters

path string

The path to the extension CRX3 package.

Returns

Task<IExtension>

A task that completes when the extension installation is completed. If the installation is successful, the result will contain an IExtension instance that corresponds to the installed extension. If the extension installation fails, the task will complete with an ExtensionInstallationException describing the error.

Remarks

Extensions can be installed for an incognito profile.

Extensions installed for the default profile in the engine with IsIncognitoEnabled option set to true are also installed for the default profile. Extensions installed for the default profile in the engine with IsIncognitoEnabled option set to false are not enabled when the engine is launched with this option.

If the same extension is already installed, this method returns the already installed extension. If the extension version is newer than that is already installed, this method replaces the installed extension.

Exceptions

ObjectDisposedException

The IExtensions has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.