共用方式為


ContentImporterAttribute Constructor (String)

Note

This constructor is available only when developing for Windows.

Initializes a new instance of ContentImporterAttribute and sets the file name extension supported by the importer.

Syntax

'Declaration
Public Sub New ( _
         fileExtension As String _
)
public ContentImporterAttribute (
         string fileExtension
)
public:
ContentImporterAttribute(
         String fileExtension
)

Parameters

  • fileExtension
    Type: String
    The list of file name extensions supported by the importer. Prefix each extension with a '.'.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP