AifCollectionTypeAttribute.new Method [AX 2012]

Constructs the attribute.

Syntax

public void new(
    str _parameterName, 
    Types _itemType, 
   [str _extendedTypeName, 
    Types _valueType, 
    str _valueExtendedTypeName])

Run On

Called

Parameters

  • _parameterName
    Type: str
    Specifies the name of the parameter of the collection for which the attribute applies.
  • _extendedTypeName
    Type: str
    Specifies the name of the type.
  • _valueExtendedTypeName
    Type: str
    Specifies the name of the type. For example class name or enumeration name.

Remarks

Use return for the _parameterName parameter to apply it to the return value.

If the collection is a map, the _itemType parameter is the type of the key, and the _valueType parameter is the type of the value.

The _extendedTypeName and _valueExtendedTypeName parameters are only required when the collection is a Types::Class, Types::Enum, or Types::UserType type.

An example of the _extendedTypeName parameter is the name of a class or the name of an enumeration type.

See Also

Reference

AifCollectionTypeAttribute Class