Udostępnij za pośrednictwem


IBuildEngine4.UnregisterTaskObject Method

Definition

Unregisters a previously-registered task object.

public:
 System::Object ^ UnregisterTaskObject(System::Object ^ key, Microsoft::Build::Framework::RegisteredTaskObjectLifetime lifetime);
public object UnregisterTaskObject (object key, Microsoft.Build.Framework.RegisteredTaskObjectLifetime lifetime);
abstract member UnregisterTaskObject : obj * Microsoft.Build.Framework.RegisteredTaskObjectLifetime -> obj
Public Function UnregisterTaskObject (key As Object, lifetime As RegisteredTaskObjectLifetime) As Object

Parameters

key
Object

The key used to retrieve the object.

lifetime
RegisteredTaskObjectLifetime

The lifetime of the object.

Returns

The registered object, or null is there is no object registered under that key or the object has been discarded through early collection.

Applies to