compareByIdentity property

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 WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IListDataAdapter

 

 

Show:
© 2017 Microsoft