共用方式為


Microsoft.Xna.Framework.Content Namespace

Contains the run-time components of the Content Pipeline.

Classes

Name Description
Public Class ContentLoadException Exception used to report errors from the ContentManager.Load method.
Public Class ContentManager 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.
Public Class ContentReader A worker object that implements most of ContentManager.Load. A new ContentReader is constructed for each asset loaded.
Public Class ContentSerializerAttribute A custom Attribute that marks a field or property to control how it is serialized or to indicate that protected or private data should be included in serialization.
Public Class ContentSerializerCollectionItemNameAttribute A custom Attribute that marks a collection class to specify the XML element name for each item in the collection.
Public Class ContentSerializerIgnoreAttribute A custom Attribute that marks public fields or properties to prevent them from being serialized.
Public Class ContentTypeReader Worker for reading a specific managed type from a binary format. Derive from this class to add new data types to the content pipeline system.
Public Class ContentTypeReader Worker for reading a specific managed type from a binary format.
Public Class ContentTypeReaderManager A manager that constructs and keeps track of type reader objects.
Public Class ResourceContentManager Subclass of ContentManager which is specialized to read from .resx resource files, rather than directly from individual files on disk.

See Also

Tasks

How to: Add a Resource to the Content Pipeline
How to: Render a Model
Installing a Custom Importer or Content Processor
How to: Write a Custom Importer and Processor

Concepts

Content Pipeline
Overview of the Content Pipeline