Click or drag to resize

ListAttributeConvertToListAttribute Method

Changes the semantic of the specified attribute and converts to a list attribute. A first item is added to the List attribute which is initialized with valued from the converted attribute. If the Attribute is already a list attribute or the attribute contains child attributes it will not be converted.

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

Parameters

attribute  AttributeType
The attribute.
itemName  String  (Optional)
The name of the converted item

Return Value

Boolean
true, if the conversion was done, otherwise false.

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