clear method
Clears all existing items from the list, which creates an empty list.
![]() ![]() |
Syntax
HRESULT retVal = object.clear();
Parameters
This method has no parameters.
Return value
Type: HRESULT
This method can return one of these values.
| Return code | Description |
|---|---|
|
IE9 mode only. An attempt is made to modify an object that cannot be changed. |
Exceptions
| Exception | Condition |
|---|---|
|
An attempt is made to modify an object that cannot be changed. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned. |
Standards information
See also
Show:

