NAnt SDK Documentation - v0.92 |

# BuildElementCollectionAttribute Constructor

Initializes a new instance of the BuildElementCollectionAttribute with the specified name and child element name.

[Visual Basic]
Public Sub New( _
ByVal collectionName As String, _
ByVal childName As String _
)
[C#]
public BuildElementCollectionAttribute(
string collectionName,
string childName
);

#### Parameters

collectionName
  The name of the collection.
childName
  The name of the child elements in the collection

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentNullException | childName is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException | childName is a zero-length String.

#### See Also

BuildElementCollectionAttribute Class | NAnt.Core.Attributes Namespace