FunctionAttribute Class

Summary

Indicates that the method should be exposed as a function in NAnt build files.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Attributes
Base Types
  • Attribute
graph BT Type-->Base0["Attribute"] Type["FunctionAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public sealed class FunctionAttribute : Attribute

Remarks

Attach this attribute to a method of a class that derives from NAnt.Core.FunctionSetBase to have NAnt be able to recognize it.

Attributes

Type Description
AttributeUsageAttribute

Constructors

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

Properties

Name Value Summary
Name string
Gets or sets the name of the function.