Class ContentImporterAttribute
Provides properties that identify and provide metadata about the importer, such as supported file extensions and caching information. Importers are required to initialize this attribute.
public class ContentImporterAttribute : Attribute
- Inheritance
-
ContentImporterAttribute
- Inherited Members
Constructors
ContentImporterAttribute(string)
Initializes a new instance of ContentImporterAttribute and sets the file name extension supported by the importer.
public ContentImporterAttribute(string fileExtension)
Parameters
fileExtension
stringThe list of file name extensions supported by the importer. Prefix each extension with a '.'.
ContentImporterAttribute(params string[])
Initializes a new instance of ContentImporterAttribute and sets the file name extensions supported by the importer.
public ContentImporterAttribute(params string[] fileExtensions)
Parameters
fileExtensions
string[]The list of file name extensions supported by the importer. Prefix each extension with a '.'.
Properties
CacheImportedData
Gets and sets the caching of the content during importation.
public bool CacheImportedData { get; set; }
Property Value
DefaultProcessor
Gets or sets the name of the default processor for content read by this importer.
public string DefaultProcessor { get; set; }
Property Value
DisplayName
Gets or sets the string representing the importer in a user interface. This name is not used by the content pipeline and should not be passed to the BuildAssets task (a custom MSBuild task used by XNA Game Studio). It is used for display purposes only.
public virtual string DisplayName { get; set; }
Property Value
FileExtensions
Gets the supported file name extensions of the importer.
public IEnumerable<string> FileExtensions { get; }