NAnt SDK Documentation - v0.92

TaskNameAttribute Class

Indicates that class should be treated as a task.

For a list of all members of this type, see TaskNameAttribute Members.

System.Object
   System.Attribute
      NAnt.Core.Attributes.ElementNameAttribute
         NAnt.Core.Attributes.TaskNameAttribute

[Visual Basic]
<AttributeUsage(Inherited:=False, ValidOn:=AttributeTargets.Class, AllowMultiple:=False)>
NotInheritable Public Class TaskNameAttribute
    Inherits ElementNameAttribute
[C#]
[AttributeUsage(Inherited=False, ValidOn=AttributeTargets.Class, AllowMultiple=False)]
public sealed class TaskNameAttribute : ElementNameAttribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

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 confict with any other task already in use.

Requirements

Namespace: NAnt.Core.Attributes

Assembly: NAnt.Core (in NAnt.Core.dll)

See Also

TaskNameAttribute Members | NAnt.Core.Attributes Namespace