List.newmethod(Types) 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 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);
}