Share via


MediaLibrary.Dispose Method

Releases the resources used by the MediaLibrary.

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

Syntax

public void Dispose ()

Remarks

Call Dispose only when you are finished using the MediaLibrary. The Dispose method leaves the MediaLibrary in an unusable state. After calling Dispose, you must release all references to the MediaLibrary in order for the garbage collector to reclaim the memory that the MediaLibrary was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone