IContentImporter.Import Method
Note
This method is available only when developing for Windows.
Imports an asset from the specified file.
Syntax
'Declaration
Public Function Import ( _
filename As String, _
context As ContentImporterContext _
) As Object
public Object Import (
string filename,
ContentImporterContext context
)
public:
Object Import(
String filename,
ContentImporterContext context
)
Parameters
- filename
Type: String
Name of the game asset file. - context
Type: ContentImporterContext
A ContentImporterContext class containing information for importing a game asset, such as a logger interface.
Return Value
Type: Object
Resulting game asset.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
IContentImporter Interface
IContentImporter Members
Microsoft.Xna.Framework.Content.Pipeline Namespace
Platforms
Windows 7, Windows Vista, Windows XP