WebExtensionPropertyCollection
Contents
[
Hide
]WebExtensionPropertyCollection class
Represents the list of web extension properties.
class WebExtensionPropertyCollection;
Constructors
| Name | Description |
|---|---|
| constructor() | Default Constructor. |
Methods
| Method | Description |
|---|---|
| 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. |
constructor()
Default Constructor.
constructor();
get(number)
Gets the property of web extension by the index.
get(index: number) : WebExtensionProperty;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | number | The index. |
Returns
The property of web extension.
get(string)
Gets the property of web extension.
get(name: string) : WebExtensionProperty;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of property. |
Returns
The property of web extension.
add(string, string)
Adds web extension property.
add(name: string, value: string) : number;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of property. |
| value | string | The value of property. |
Returns
The index of added property.
removeAt(string)
Remove the property by the name.
removeAt(name: string) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the property. |