EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

IListDataAdapter.itemsFromKey method

Applies to Windows and Windows Phone

Retrieves the item that has the specified key and also retrieves the specified number of items before and after the selected item.

Syntax


iListDataAdapter.itemsFromKey(key, countBefore, countAfter).done( /* Your success and error handlers */ );

Parameters

key

Type: String

The key of the item to retrieve.

countBefore

Type: Number

The number of items to retrieve from before the selected item.

countAfter

Type: Number

The number of items to retrieve from after the selected item.

Return value

Type: Promise

A Promise that provides an IFetchResult that contains the selected items or a FetchError if an error was encountered.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

See also

IListDataAdapter

 

 

Afficher:
© 2014 Microsoft