Sdílet prostřednictvím


WmvImporter.Import Method

Note

This method is available only when developing for Windows.

Called by the XNA Framework when importing a Windows Media Video (.wmv) file to be used as a game asset. This is the method called by the XNA Framework when an asset is to be imported into an object that can be recognized by the Content Pipeline.

Syntax

'Declaration
Public Overrides Function Import ( _
         filename As String, _
         context As ContentImporterContext _
) As VideoContent 
public override VideoContent Import (
         string filename,
         ContentImporterContext context
)
public:
VideoContent Import(
         String filename,
         ContentImporterContext context
) override

Parameters

  • filename
    Type: String
    Name of a game asset file.
  • context
    Type: ContentImporterContext
    Contains information for importing a game asset, such as a logger interface.

Return Value

Type: VideoContent
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

WmvImporter Class
WmvImporter Members
Microsoft.Xna.Framework.Content.Pipeline Namespace

Platforms

Windows 7, Windows Vista, Windows XP