NAnt SDK Documentation - v0.92 |

# FunctionAttribute Class

Indicates that the method should be exposed as a function in NAnt build files.

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

System.Object
System.Attribute
NAnt.Core.Attributes.FunctionAttribute

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

#### 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 method of a class that derives from FunctionSetBase to have NAnt be able to recognize it.

#### Requirements

Namespace: NAnt.Core.Attributes

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

#### See Also

FunctionAttribute Members | NAnt.Core.Attributes Namespace