Gets the number of key/value pairs contained in the Dictionary.
Namespace: MindFusion.Mapping
Package: Dictionary.js
JavaScript Copy Code |
---|
Object.defineProperty(Dictionary.prototype, "count", { value: Number }); |
Number. The count of key/value pairs.
The following code creates a new Dictionary and adds LatLong instances with keys the cities they belong to. Then it checks if the count of Dictionary entries is more than 100 and alerts the user:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var locations = new m.Dictionary(); if(locations.count > 100) |