NAnt SDK Documentation - v0.92

TypeFactory.CreateTask Method 

Creates a new Task instance for the given XML and Project.

[Visual Basic]
Public Shared Function CreateTask( _
   ByVal taskNode As XmlNode, _
   ByVal proj As Project _
) As Task
[C#]
public static Task CreateTask(
   XmlNode taskNode,
   Project proj
);

Parameters

taskNode
The XML to initialize the task with.
proj
The Project that the Task belongs to.

Return Value

The new Task instance.

See Also

TypeFactory Class | NAnt.Core Namespace