WebExtensionPropertyCollection

WebExtensionPropertyCollection class

Represents the list of web extension properties.

class WebExtensionPropertyCollection;

Constructors

NameDescription
constructor()Default Constructor.

Methods

MethodDescription
get(number)Gets the property of web extension by the index.
add(string, string)Adds web extension property.
removeAt(string)Remove the property by the name.
getCount()Gets the number of elements contained in.

constructor()

Default Constructor.

constructor();

get(number)

Gets the property of web extension by the index.

get(index: number) : WebExtensionProperty;

Parameters:

ParameterTypeDescription
indexnumberThe index.

Returns

The property of web extension.

add(string, string)

Adds web extension property.

add(name: string, value: string) : number;

Parameters:

ParameterTypeDescription
namestringThe name of property.
valuestringThe value of property.

Returns

The index of added property.

removeAt(string)

Remove the property by the name.

removeAt(name: string) : void;

Parameters:

ParameterTypeDescription
namestringThe name of the property.

getCount()

Gets the number of elements contained in.

getCount() : number;