Partager via


ContentManager.Unload Method

Disposes all data that was loaded by this ContentManager.

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

Syntax

public virtual void Unload ()

Exceptions

Exception type Condition
ObjectDisposedException Unload was called after the ContentManager was disposed.

See Also

Reference

ContentManager Class
ContentManager Members
Microsoft.Xna.Framework.Content Namespace

Platforms

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