Share via


DocumentTask.Finalize Method

Recovers resources just before the DocumentTask object is destroyed.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Protected Overrides Sub Finalize
'Usage
Me.Finalize()
protected override void Finalize()
protected:
virtual void Finalize() override
protected override function Finalize()

Remarks

This method forwards the call to the Dispose(Boolean) method with a parameter of false.

This method overrides Finalize. Application code should not call this method; the Finalize method of an object is automatically invoked during garbage collection, unless finalization by the garbage collector has been disabled by a call to the SuppressFinalize method.

For more information, see Finalize Methods and Destructors, Cleaning Up Unmanaged Resources, and Overriding the Finalize Method.

.NET Framework Security

See Also

Reference

DocumentTask Class

DocumentTask Members

Microsoft.VisualStudio.Package Namespace