IListDataAdapter.compareByIdentity property

Applies to Windows and Windows Phone

Gets or sets a value that specifies whether to use an object's identity to determine if an item has changed.

Syntax


var compareByIdentity = iListDataAdapter.compareByIdentity;
iListDataAdapter.compareByIdentity = compareByIdentity;

Property value

Type: Boolean

Set to true to use an object's identity to determine if the item has changed; set to false to use a stringified version of the item's value instead. The default value is false.

Remarks

If your data source always returns the same object identity across multiple requests (such as when your data source is an array), it's more efficient to set compareByIdentity to true.

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

 

 

Show:
© 2015 Microsoft