Partager via


IListDataSource.itemFromDescription method

Retrieves the item that has the specified description.

Syntax

iListDataSource.itemFromDescription(description).done( /* Your success and error handlers */ );

Parameters

  • description
    Type: Object

    Domain-specific information, to be interpreted by the IListDataAdapter, that describes the item to retrieve.

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 wasn't found, the promise completes with a value of null.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IListDataSource