IBuildEngine4.GetRegisteredTaskObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.