Partilhar via


ListIterator.newmethod(List) Method

Definition

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);

Applies to