<li><ahref="../../../../Microsoft/Xna/Framework/Content/ContentLoadException.html"title="class in Microsoft.Xna.Framework.Content"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Content/ContentReader.html"title="class in Microsoft.Xna.Framework.Content"><spanclass="strong">Next Class</span></a></li>
<dd><ahref="../../../../System/IDisposable.html"title="interface in System">IDisposable</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">ContentManager</span>
extends java.lang.Object
implements <ahref="../../../../System/IDisposable.html"title="interface in System">IDisposable</a></pre>
<divclass="block">The ContentManager is the run-time component which loads managed objects from the binary files produced by the design time content pipeline. It also manages the
lifespan of the loaded objects, disposing the content manager will also dispose any assets which are themselves IDisposable.</div>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Content/ContentManager.html#ContentManager(System.IServiceProvider)">ContentManager</a></strong>(<ahref="../../../../System/IServiceProvider.html"title="interface in System">IServiceProvider</a> serviceProvider)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colOne"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Content/ContentManager.html#ContentManager(System.IServiceProvider, java.lang.String)">ContentManager</a></strong>(<ahref="../../../../System/IServiceProvider.html"title="interface in System">IServiceProvider</a> serviceProvider,
<ahref="../../../../System/Action.html"title="class in System">Action</a><<ahref="../../../../System/IDisposable.html"title="interface in System">IDisposable</a>> recordDisposableObject)</code>
<divclass="block">Low-level worker method that reads asset data.</div>
<pre>public ContentManager(<ahref="../../../../System/IServiceProvider.html"title="interface in System">IServiceProvider</a> serviceProvider)</pre>
<pre>public ContentManager(<ahref="../../../../System/IServiceProvider.html"title="interface in System">IServiceProvider</a> serviceProvider,
<pre>public <ahref="../../../../System/IServiceProvider.html"title="interface in System">IServiceProvider</a> getServiceProvider()</pre>
</li>
</ul>
<aname="Dispose()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Dispose</h4>
<pre>public void Dispose()</pre>
<divclass="block"><strong>Description copied from interface: <code><ahref="../../../../System/IDisposable.html#Dispose()">IDisposable</a></code></strong></div>
<divclass="block">Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../../System/IDisposable.html#Dispose()">Dispose</a></code> in interface <code><ahref="../../../../System/IDisposable.html"title="interface in System">IDisposable</a></code></dd>
<ahref="../../../../System/Action.html"title="class in System">Action</a><<ahref="../../../../System/IDisposable.html"title="interface in System">IDisposable</a>> recordDisposableObject)</pre>
<divclass="block">Low-level worker method that reads asset data.</div>
<dl><dt><spanclass="strong">Type Parameters:</span></dt><dd><code>T</code> - </dd><dt><spanclass="strong">Parameters:</span></dt><dd><code>assetName</code> - The name of the asset to be loaded from disk.</dd><dd><code>recordDisposableObject</code> - Delegate function for handling the disposition of assets. If recordDisposableObject is null,
the default lifespan tracking and management is used, so unloading or disposing of the content
manager frees everything that has been loaded through it. If recordDisposableObject specifies
a valid delegate, that delegate is used instead of the default lifespan tracking and is called
every time the loader encounters a type that implements IDisposable. You must use your own code
to unload assets loaded in this fashion, since ContentManager's Unload method will not be aware
of them.</dd></dl>
</li>
</ul>
<aname="Unload()">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>Unload</h4>
<pre>public void Unload()</pre>
<dl><dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../../System/ObjectDisposedException.html"title="class in System">ObjectDisposedException</a></code></dd></dl>
<li><ahref="../../../../Microsoft/Xna/Framework/Content/ContentLoadException.html"title="class in Microsoft.Xna.Framework.Content"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Content/ContentReader.html"title="class in Microsoft.Xna.Framework.Content"><spanclass="strong">Next Class</span></a></li>