Class ContentType
Declares web-related/mime content types
Inheritance
System.Object
ContentType
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NFX.Web.dll
Syntax
public static class ContentType
Fields
BINARY
Declaration
public const string BINARY = "application/octet-stream"
Field Value
Type |
Description |
System.String |
|
CSS
Declaration
public const string CSS = "text/css"
Field Value
Type |
Description |
System.String |
|
EOT
Declaration
public const string EOT = "application/vnd.ms-fontobject"
Field Value
Type |
Description |
System.String |
|
EXE
Declaration
public const string EXE = "application/octet-stream"
Field Value
Type |
Description |
System.String |
|
FORM_MULTIPART_ENCODED
Declaration
public const string FORM_MULTIPART_ENCODED = "multipart/form-data"
Field Value
Type |
Description |
System.String |
|
FORM_MULTIPART_ENCODED_BOUNDARY
Declaration
public const string FORM_MULTIPART_ENCODED_BOUNDARY = "multipart/form-data; boundary={0}"
Field Value
Type |
Description |
System.String |
|
FORM_URL_ENCODED
Declaration
public const string FORM_URL_ENCODED = "application/x-www-form-urlencoded"
Field Value
Type |
Description |
System.String |
|
GIF
Declaration
public const string GIF = "image/gif"
Field Value
Type |
Description |
System.String |
|
HTML
Declaration
public const string HTML = "text/html"
Field Value
Type |
Description |
System.String |
|
ICO
Declaration
public const string ICO = "image/x-icon"
Field Value
Type |
Description |
System.String |
|
JPEG
Declaration
public const string JPEG = "image/jpeg"
Field Value
Type |
Description |
System.String |
|
JS
Declaration
public const string JS = "application/x-javascript"
Field Value
Type |
Description |
System.String |
|
JSON
Declaration
public const string JSON = "application/json"
Field Value
Type |
Description |
System.String |
|
OTF
Declaration
public const string OTF = "application/font-sfnt"
Field Value
Type |
Description |
System.String |
|
PDF
Declaration
public const string PDF = "application/pdf"
Field Value
Type |
Description |
System.String |
|
PNG
Declaration
public const string PNG = "image/png"
Field Value
Type |
Description |
System.String |
|
SSE
Declaration
public const string SSE = "text/event-stream"
Field Value
Type |
Description |
System.String |
|
TEXT
Declaration
public const string TEXT = "text/plain"
Field Value
Type |
Description |
System.String |
|
TTF
Declaration
public const string TTF = "application/font-sfnt"
Field Value
Type |
Description |
System.String |
|
WOFF
Declaration
public const string WOFF = "application/font-woff"
Field Value
Type |
Description |
System.String |
|
XML_APP
Declaration
public const string XML_APP = "application/xml"
Field Value
Type |
Description |
System.String |
|
XML_TEXT
Declaration
public const string XML_TEXT = "text/xml"
Field Value
Type |
Description |
System.String |
|
Methods
ExtensionToContentType(String, String)
Declaration
public static string ExtensionToContentType(string ext, string dflt = "text/html")
Parameters
Type |
Name |
Description |
System.String |
ext |
|
System.String |
dflt |
|
Returns
Type |
Description |
System.String |
|