 | 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.AmlObjectsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static bool ConvertToListAttribute(
this AttributeType attribute,
string itemName = "item"
)
<ExtensionAttribute>
Public Shared Function ConvertToListAttribute (
attribute As AttributeType,
Optional itemName As String = "item"
) As Boolean
public:
[ExtensionAttribute]
static bool ConvertToListAttribute(
AttributeType^ attribute,
String^ itemName = L"item"
)
Parameters
- attribute AttributeType
- The attribute.
- itemName String (Optional)
- The name of the converted item
Return Value
Booleantrue, 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