Click or drag to resize

ListAttributeAddListItem Method

Adds an additional list item attribute to the list attribute. If the List attribute already contains some items, the new item will have the same item type as the already existing items. If this is the first item, the specified itemType is used as the attribute data type. If no itemType is defined, the default data type for the list item is "xs:string". The Item name is automatically set to the Index if the List attribute is an ordered list, otherwise the defined itemName is used.

Namespace: Aml.Engine.AmlObjects
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static AttributeType AddListItem(
	this AttributeType attribute,
	string itemType = "",
	string itemName = "item"
)

Parameters

attribute  AttributeType
The List attribute.
itemType  String  (Optional)
Type of the new item (ignored for a list attribute containing items)
itemName  String  (Optional)
Name of the item (ignored for an ordered list attribute).

Return Value

AttributeType
the added list item Attribute.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AttributeType. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also