Map.getEnumerator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an enumerator for the map, which lets you traverse the map.
public:
Microsoft::Dynamics::Ax::Xpp::MapEnumerator ^ getEnumerator();
public Microsoft.Dynamics.Ax.Xpp.MapEnumerator getEnumerator ();
member this.getEnumerator : unit -> Microsoft.Dynamics.Ax.Xpp.MapEnumerator
Public Function getEnumerator () As MapEnumerator
Returns
A MapEnumerator object for the map.
Remarks
The following example checks whether the _from map has any elements and creates an enumerator for the map if it has any elements. The map is then traversed, and the elements in it are inserted into the _to map.
static void mergeRecsPrim(
Map _from,
Map _to
)
{
MapEnumerator me;
if (! _from)
{
return;
}
if (! _from.elements())
{
return;
}
me = _from.getEnumerator();
while (me.moveNext())
{
_to.insert(me.currentKey(),me.currentValue());
}
}