List.newmethod(Types) Method

Definition

Creates a list.

protected:
 void newmethod(Microsoft::Dynamics::Ax::Xpp::Types _Type);
protected void newmethod (Microsoft.Dynamics.Ax.Xpp.Types _Type);
override this.newmethod : Microsoft.Dynamics.Ax.Xpp.Types -> unit
Protected Sub newmethod (_Type As Types)

Parameters

_Type
Types

The type that the elements in the list should have.

Remarks

The possible values for the Type parameter are supplied by the Types system enum. After you have created a list, you cannot change the type of the elements it contains.

The following example creates a list of strings.

{ 
    // Creates a list of integers. 
    List il = new List(Types::String); 
}

Applies to