Share via


Song.Finalize Method

Releases unmanaged resources and performs other cleanup operations before the Song is reclaimed by garbage collection.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

protected override void Finalize ()

Remarks

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

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

See Also

Reference

Song Class
Song Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune