ListIterator.newmethod(List) 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 a new iterator for a particular list.
protected:
void newmethod(Microsoft::Dynamics::Ax::Xpp::List ^ list1);
protected void newmethod (Microsoft.Dynamics.Ax.Xpp.List list1);
override this.newmethod : Microsoft.Dynamics.Ax.Xpp.List -> unit
Protected Sub newmethod (list1 As List)
Parameters
- list1
- List
Remarks
The iterator is positioned at the first value in the list, if the list is not empty. Iterators and the lists that they iterate over must be on the same client/server side.
The following example creates an iterator for a list of integers.
List il = new List(types::Integer);
ListIterator it;
it = new ListIterator (il);