Class StaticFileContentTypeAttribute
Specify the content-type for a file extension.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
public class StaticFileContentTypeAttribute : Attribute
- Inheritance
-
objectAttributeStaticFileContentTypeAttribute
Constructors
StaticFileContentTypeAttribute(string, string)
public StaticFileContentTypeAttribute(string fileExtension, string contentType)
Parameters
Fields
ContentType
public string ContentType
Field Value
FileExtension
public string FileExtension