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