Share via


XamlTaskFactory.CleanupTask Method

Cleans up any context or state that may have been built up for a given task.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Sub CleanupTask ( _
    task As ITask _
)
public void CleanupTask(
    ITask task
)
public:
virtual void CleanupTask(
    ITask^ task
) sealed
abstract CleanupTask : 
        task:ITask -> unit  
override CleanupTask : 
        task:ITask -> unit
public final function CleanupTask(
    task : ITask
)

Parameters

Implements

ITaskFactory.CleanupTask(ITask)

Remarks

Some factories may create an AppDomain as part of an individual task instance. Such factories use this method to shutdown the AppDomain.

.NET Framework Security

See Also

Reference

XamlTaskFactory Class

Microsoft.Build.Tasks Namespace