Partager via


CodeTaskFactory.CleanupTask(ITask) Method

Definition

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

public:
 virtual void CleanupTask(Microsoft::Build::Framework::ITask ^ task);
public void CleanupTask (Microsoft.Build.Framework.ITask task);
abstract member CleanupTask : Microsoft.Build.Framework.ITask -> unit
override this.CleanupTask : Microsoft.Build.Framework.ITask -> unit
Public Sub CleanupTask (task As ITask)

Parameters

task
ITask

The task to clean up.

Implements

Remarks

For many factories, this method is a no-op. But some factories may have built up an AppDomain as part of an individual task instance, and this is their opportunity to shutdown the AppDomain.

Applies to