ElementType Property

NAnt SDK Documentation - v0.92 |

# BuildElementArrayAttribute.ElementType Property

Gets or sets the type of objects that this container holds.

[Visual Basic]
Public Property ElementType As Type
[C#]
public System.Type ElementType {get; set;}

#### Property Value

The type of the elements that this container holds.

#### Remarks

This can be used for validation and schema generation.

If not specified, the type of the elements will be determined using reflection.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentNullException | value is a null reference (Nothing in Visual Basic).

#### See Also

BuildElementArrayAttribute Class | NAnt.Core.Attributes Namespace