Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the item with the specified key.
Syntax
iListDataSource.itemFromKey(key, description).done( /* Your success and error handlers */ );
Parameters
key
Type: StringThe key of the item to retrieve. It must be a non-empty string.
description [optional]
Type: ObjectDomain-specific information that IListDataAdapter can use to improve the retrieval time.
Return value
Type: Promise**
A Promise that provides an IItem that contains the requested item or a FetchError if an error was encountered. If the item was not found, the promise completes with a null value.
Requirements
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI |