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
)

Parameters

key
Type: System.Object

The key used to retrieve the object.

lifetime
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
Show:
© 2015 Microsoft