Share via


AfDataContainer.get_Array Method [AX 2012]

Gets the value of the specified array.

Syntax

public AfArray get_Array(str _name, [boolean _createIfAbsent])

Run On

Called

Parameters

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

Return Value

Type: AfArray Class
The value of the specified array.

Remarks

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

If the data item is absent or has a type of something other than AfArray, e.g., it is a primitive type, a data container, or a data container list, then this 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 an array with length and element type specified by the data container descriptor (see the get_Descriptor method) is created, added to the data container, and returned to the caller.

Otherwise, an error is thrown.

See Also

Reference

AfDataContainer Class