Initializes a new instance of the TaskNameAttribute with the specified name.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | name is a null reference (Nothing in Visual Basic). |
| ArgumentOutOfRangeException | name is a zero-length String. |
TaskNameAttribute Class | NAnt.Core.Attributes Namespace