This documentation is archived and is not being maintained.

ITaskFactory Interface

Interface that a task factory Instance should implement.

Namespace:  Microsoft.Build.Framework
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

public interface ITaskFactory

The ITaskFactory type exposes the following members.

Public propertyFactoryNameGets the name of the factory.
Public propertyTaskTypeGets the type of the task this factory will instantiate.

Public methodCleanupTaskCleans up any context or state that may have been built up for a given task.
Public methodCreateTaskCreates an instance of the task to be used in a batch. The task factory logging host will log messages in the context of the task.
Public methodGetTaskParametersGet the descriptions for all the task's parameters.
Public methodInitializeInitializes this factory for instantiating tasks with a particular inline task block.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.