ScriptObject.Finalize Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Frees resources and performs other cleanup operations before the scriptable object is reclaimed by garbage collection.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

Syntax

'Declaration
Protected Overrides Sub Finalize
protected override void Finalize()

Remarks

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

For more information, see Finalize Methods and Destructors in the full .NET Framework documentation.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.