IBuildEngine4.UnregisterTaskObject 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.
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.