Table of Contents

Class EnableExtensionsOption

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

Represents the value for the EnableExtensions launch option. Can be implicitly converted from a bool or a string array.

public class EnableExtensionsOption
Inheritance
EnableExtensionsOption

Constructors

EnableExtensionsOption(bool)

Initializes a new instance of the EnableExtensionsOption class with a boolean value.

public EnableExtensionsOption(bool enabled)

Parameters

enabled bool

Whether extensions are enabled.

EnableExtensionsOption(string[])

Initializes a new instance of the EnableExtensionsOption class with an array of extension paths.

public EnableExtensionsOption(string[] paths)

Parameters

paths string[]

The paths to unpacked extensions to load.

Properties

Enabled

Gets a value indicating whether extensions should be enabled.

public bool Enabled { get; }

Property Value

bool

Paths

Gets the paths to unpacked extensions to load. When null, no specific extensions are loaded, but extensions may still be enabled if Enabled is true.

public string[] Paths { get; }

Property Value

string[]

Operators

implicit operator EnableExtensionsOption(bool)

Implicitly converts a bool to an EnableExtensionsOption.

public static implicit operator EnableExtensionsOption(bool enabled)

Parameters

enabled bool

The boolean value.

Returns

EnableExtensionsOption

implicit operator EnableExtensionsOption(string[])

Implicitly converts a string array to an EnableExtensionsOption.

public static implicit operator EnableExtensionsOption(string[] paths)

Parameters

paths string[]

The array of extension paths.

Returns

EnableExtensionsOption