NAnt SDK Documentation - v0.92

ElementNameAttribute Constructor 

Initializes a new instance of the with the specified name.

[Visual Basic]
Public Sub New( _
   ByVal name As String _
)
[C#]
public ElementNameAttribute(
   string name
);

Parameters

name
The name of the element.

Exceptions

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

See Also

ElementNameAttribute Class | NAnt.Core.Attributes Namespace