Share via


AfDataContainerList.insertNew Method [AX 2012]

Creates a new data container of the type that is specified by the data container descriptor of the list, inserts the new container at the specified index, and retrieves the newly created data container.

Syntax

public AfDataContainer insertNew(int _index)

Run On

Called

Parameters

  • _index
    Type: int
    The index at which to insert the newly created data container.

Return Value

Type: AfDataContainer Class
The newly created data container.

Remarks

If the index is invalid, an error is thrown.

See Also

Reference

AfDataContainerList Class