Associates the specified value with the specified key within the Dictionary.
Namespace: MindFusion.Mapping
Package: Dictionary.js
JavaScript Copy Code |
---|
function set (key, value) |
Object. The key to associate the value with.
Object. The value to associate.
The following code creates a new Dictionary and adds three LatLong instances with keys the cities they belong to.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var locations = new m.Dictionary(); |