BuildElementArrayAttribute Class

Summary

Indicates that property should be treated as a XML arrayList
graph BT Type-->Base0["BuildElementAttribute"] click Base0 "/api/NAnt.Core.Attributes/BuildElementAttribute" Base0-->Base1["BaseBuildAttribute"] click Base1 "/api/NAnt.Core.Attributes/BaseBuildAttribute" Base1-->Base2["Attribute"] Type["BuildElementArrayAttribute"] class Type type-node Derived0["BuildElementCollectionAttribute"]-->Type click Derived0 "/api/NAnt.Core.Attributes/BuildElementCollectionAttribute"

Syntax

[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public class BuildElementArrayAttribute : BuildElementAttribute

Remarks

Should only be applied to properties exposing strongly typed arrays or strongly typed collections.

The XML format is like this:

    <task>
    <elementName ... />
    <elementName ... />
    <elementName ... />
    <elementName ... />
</task>

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
BuildElementArrayAttribute(string) Initializes a new instance of the NAnt.Core.Attributes.BuildElementArrayAttribute with the specified name.

Properties

Name Value Summary
ElementType Type
Gets or sets the type of objects that this container holds.
Name string
Gets or sets the name of the item.
Inherited from BaseBuildAttribute
ProcessXml bool
Used to specify how this element will be handled as the XML is parsed and given to the element.
Inherited from BaseBuildAttribute
Required bool
Gets or sets a value indicating whether the item is required.
Inherited from BaseBuildAttribute