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.
get(string)Gets the property of web extension.
add(string, string)Adds web extension property.
removeAt(string)Remove the property by the name.
getCount()Gets the number of elements contained in.
isNull()Checks whether the implementation object is null.

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.

get(string)

Gets the property of web extension.

get(name: string) : WebExtensionProperty;

Parameters:

ParameterTypeDescription
namestringThe name of property.

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;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;