console.info("Got the preferences successfully.");
}).catch((err)=>{
console.info("Failed to get the preferences. Cause: "+err);
})
}).catch((err)=>{
console.log("Failed to get the preferences. code ="+err.code+", message ="+err.message);
})
}catch(err){
console.log("Failed to get the preferences. code ="+err.code+", message ="+err.message);
}
```
## data_preferences.deletePreferences
...
...
@@ -167,6 +181,14 @@ The deleted **Preferences** instance cannot be used for data operations. Otherwi
| name | string | Yes | Name of the **Preferences** instance to delete. |
| callback | AsyncCallback<void> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error code.|
**Error codes**
For details about the following error codes, see [Preference Error Codes](../errorcodes/errorcode-preferences.md).
A result set is a set of results returned after the relational database (RDB) query APIs are called. You can use the **resultset** APIs to obtain required data.
> **NOTE**<br/>
> **NOTE**
>
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Usage
## ResultSetV9<sup>9+</sup>
You need to use [RdbStore.query()](js-apis-data-rdb.md#query) to obtain a **resultSet** object.
Provides methods to access the result set, which is obtained by querying the RDB store.
### Usage
You need to obtain the **resultSetV9** instance by using [RdbStoreV9.query()](js-apis-data-rdb.md#query).