MapEnumerator Class

Definition

The MapEnumerator class lets you traverse through the elements in a map.

public ref class MapEnumerator : Microsoft::Dynamics::Ax::Xpp::XppObjectBase, Microsoft::Dynamics::Ax::Xpp::Enumerator
public class MapEnumerator : Microsoft.Dynamics.Ax.Xpp.XppObjectBase, Microsoft.Dynamics.Ax.Xpp.Enumerator
type MapEnumerator = class
    inherit XppObjectBase
    interface Enumerator
Public Class MapEnumerator
Inherits XppObjectBase
Implements Enumerator
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
MapEnumerator
Implements

Remarks

Map enumerators start before the first element in the list. You must call the MapEnumerator.moveNext method to make it point to the first element in the list. It is a best practice to use the MapEnumerator class instead of the MapIterator class because enumerators are automatically created on the same tier as the map when you call the Map.getEnumerator method. Using the MapEnumerator class avoids a potential problem in code marked as Called from, where the iterator and map can end up on separate tiers. In addition, because map enumerators require less code than map iterators, they perform slightly better. The only situation where you have to use a map iterator, is when you want to delete items from a list by using the MapIterator.delete method.

Constructors

MapEnumerator()
MapEnumerator(Map)

Fields

kernelClass (Inherited from XppObjectBase)

Properties

AxClassId

Methods

__shouldCallNew(Type) (Inherited from XppObjectBase)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
Current()

This method is obsolete; use MapEnumerator.currentKey instead.

currentKey()

Returns the key from the (key, value) pair that is currently pointed to by the enumerator.

currentValue()

Returns the value from the (key, value) pair that is currently pointed to by the enumerator.

Definitionstring()

Returns a description of the enumerator. For example, an enumerator for a map of integers to strings would return "[int -> str] enumerator".

equal(XppObjectBase) (Inherited from XppObjectBase)
finalize() (Inherited from XppObjectBase)
GetIntPtr() (Inherited from XppObjectBase)
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
IsManagedValid() (Inherited from XppObjectBase)
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
Movenext()

Determines whether the enumerator points to a valid map element.

newmethod() (Inherited from XppObjectBase)
notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
Reset()

Moves the enumerator to point to just before the first element in the map.

setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
ToString()

Returns a string that represents the current object.

usageCount() (Inherited from XppObjectBase)
VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to