TaskNameAttribute Class

Summary

Indicates that class should be treated as a task.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Attributes
Base Types
graph BT Type-->Base0["ElementNameAttribute"] click Base0 "/api/NAnt.Core.Attributes/ElementNameAttribute" Base0-->Base1["Attribute"] Type["TaskNameAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class TaskNameAttribute : ElementNameAttribute

Remarks

Attach this attribute to a subclass of Task to have NAnt be able to recognize it. The name should be short but must not conflict with any other task already in use.

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
TaskNameAttribute(string) Initializes a new instance of the NAnt.Core.Attributes.TaskNameAttribute with the specified name.

Properties

Name Value Summary
Name string
Gets or sets the name of the element.
Inherited from ElementNameAttribute