NAnt SDK Documentation - v0.92

BuildElementCollectionAttribute Class

Indicates that the property should be treated as a container for a collection of build elements.

For a list of all members of this type, see BuildElementCollectionAttribute Members.

System.Object
   System.Attribute
      NAnt.Core.Attributes.BuildElementAttribute
         NAnt.Core.Attributes.BuildElementArrayAttribute
            NAnt.Core.Attributes.BuildElementCollectionAttribute

[Visual Basic]
<AttributeUsage(Inherited:=True, ValidOn:=AttributeTargets.Property, AllowMultiple:=False)>
NotInheritable Public Class BuildElementCollectionAttribute
    Inherits BuildElementArrayAttribute
[C#]
[AttributeUsage(Inherited=True, ValidOn=AttributeTargets.Property, AllowMultiple=False)]
public sealed class BuildElementCollectionAttribute : BuildElementArrayAttribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

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

The XML format is like this:

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

Requirements

Namespace: NAnt.Core.Attributes

Assembly: NAnt.Core (in NAnt.Core.dll)

See Also

BuildElementCollectionAttribute Members | NAnt.Core.Attributes Namespace