List.indexOfKey method

Applies to Windows and Windows Phone

Gets the index of the first occurrence of a key in a list.

Syntax


var number = list.indexOfKey(key);

Parameters

key

Type: String

The key to locate in the list.

Return value

Type: Number

The index of the first occurrence of a key in a list, or -1 if not found.

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.Binding

Library

Base.js

See also

List

 

 

Show:
© 2014 Microsoft