 | 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.AmlObjectsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static AttributeType AddListItem(
this AttributeType attribute,
string itemType = "",
string itemName = "item"
)
<ExtensionAttribute>
Public Shared Function AddListItem (
attribute As AttributeType,
Optional itemType As String = "",
Optional itemName As String = "item"
) As AttributeType
public:
[ExtensionAttribute]
static AttributeType^ AddListItem(
AttributeType^ attribute,
String^ itemType = L"",
String^ itemName = L"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
AttributeTypethe 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