Share via


AfDataContainer.get_List Method [AX 2012]

Gets the value of the data container list.

Syntax

public AfDataContainerList get_List(str _name, [boolean _createIfAbsent])

Run On

Called

Parameters

  • _name
    Type: str
    The name of the data container list.
  • _createIfAbsent
    Type: boolean
    A Boolean value that indicates whether the data container list should be created if it is not already in the data container; optional.

Return Value

Type: AfDataContainerList Class
The value of the data container list.

Remarks

If the specified data item is present and is of type AfDataContainerList, then this method returns its value.

If the data item is absent or has type of something other than AfDataContainerList, e.g., it is a primitive type or a data container, the method returns null Nothing nullptr unit a null reference (Nothing in Visual Basic) .

If the data item is absent and the _createIfAbsent parameter is set to true, then a data container list of a type that is specified by the data container descriptor (see the get_Descriptor method) is created, added to the data container, and returned to the caller. If the descriptor does not have an entry for the specified data item but allows the data container to have unknown data items, a data container of type generic is used (see the DataContainerTypes.Generic macro).

Otherwise, an error is thrown.

See Also

Reference

AfDataContainer Class