Summary
Indicates that class should be treated as a NAnt element.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Attributes - Base Types
-
- Attribute
- Derived Types
graph BT
Type-->Base0["Attribute"]
Type["ElementNameAttribute"]
class Type type-node
Derived0["TaskNameAttribute"]-->Type
click Derived0 "/api/NAnt.Core.Attributes/TaskNameAttribute"
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public class ElementNameAttribute : Attribute
Remarks
Attach this attribute to a subclass of Element to have NAnt be able
to recognize it. The name should be short but must not conflict
with any other element already in use.
Attributes
Type | Description |
---|---|
Attribute |
Constructors
Name | Summary |
---|---|
ElementNameAttribute |
Initializes a new instance of the
with the specified name.
|
Properties
Name | Value | Summary |
---|---|---|
Name | string |
Gets or sets the name of the element.
|