Engine4.Get Registered Task Object Method
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
The key used to retrieve the object.
The lifetime of the object.
The registered object, or null is there is no object registered under that key or the object has been discarded through early collection.