IBuildEngine4.UnregisterTaskObject Method

.NET Framework 4.6 and 4.5

Unregisters a previously registered task object.

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

Object UnregisterTaskObject(
	Object key,
	RegisteredTaskObjectLifetime lifetime


Type: System.Object

The key used to retrieve the object.

Type: Microsoft.Build.Framework.RegisteredTaskObjectLifetime

The lifetime of the object.

Return Value

Type: System.Object
Returns a previously registered object, or null if there is no object registered under that key or if the object has been discarded through early collection.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft