ContentImporter.Import Method

Called by the framework when importing a game asset. This is the method called by XNA when an asset is to be imported into an object that can be recognized by the Content Pipeline.

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

public virtual abstract T Import (
         string filename,
         ContentImporterContext context


Name of a game asset file.
Contains information for importing a game asset, such as a logger interface.

Return Value

Resulting game asset.

Windows XP SP2, Windows Vista