Share via


IBuildEngine4.GetRegisteredTaskObject Method

Definition

Retrieves a previously registered task object stored with the specified key.

public:
 System::Object ^ GetRegisteredTaskObject(System::Object ^ key, Microsoft::Build::Framework::RegisteredTaskObjectLifetime lifetime);
public object GetRegisteredTaskObject (object key, Microsoft.Build.Framework.RegisteredTaskObjectLifetime lifetime);
abstract member GetRegisteredTaskObject : obj * Microsoft.Build.Framework.RegisteredTaskObjectLifetime -> obj
Public Function GetRegisteredTaskObject (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