InitializeLifetimeService Method

TaskItem::InitializeLifetimeService Method ()


When overridden in a derived class, gives task items infinite lease time.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:   Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

virtual Object^ InitializeLifetimeService() override

Return Value

Type: System::Object^

null to specify an infinite lifetime.

Otherwise, a limited lease of 5 minutes will result; and task instances can expire if they take a long time to process.

Return to top
© 2016 Microsoft