把它当作响亮的否定,我写了我自己的。那是星期天的事。
public const string ApplicationXJavascript = "application/x-javascript";
public const string AudioL24 = "audio/L24";
public const string ApplicationXShockwaveFlash = "application/x-shockwave-flash";
public const string ApplicationOctetStream = "application/octet-stream";
public const string ApplicationAtomXml = "application/atom+xml";
public const string TextCss = "text/css";
public const string TextCmd = "text/cmd";
public const string TextCsv = "text/csv";
public const string ApplicationXDeb = "application/x-deb";
public const string MultipartEncrypted = "multipart/encrypted";
public const string MultipartSigned = "multipart/signed";
public const string MessageHttp = "message/http";
public const string ModelExample = "model/example";
public const string ApplicationXDvi = "application/x-dvi";
public const string ApplicationXmlDtd = "application/xml-dtd";
public const string ApplicationJavascript = "application/javascript";
public const string ApplicationEcmascript = "application/ecmascript";
public const string ApplicationEdifact = "application/EDIFACT";
public const string ApplicationEdiX12 = "application/EDI-X12";
public const string MessagePartial = "message/partial";
public const string MessageRfc822 = "message/rfc822";
public const string TextXml = "text/xml";
public const string ApplicationXml = "application/xml";
public const string VideoXFlv = "video/x-flv";
public const string ImageGif = "image/gif";
public const string TextXGwtRpc = "text/x-gwt-rpc";
public const string ApplicationXGzip = "application/x-gzip";
public const string TextHtml = "text/html";
public const string ImageVndMicrosoftIcon = "image/vnd.microsoft.icon";
public const string ModelIges = "model/iges";
public const string MessageImdnXml = "message/imdn+xml";
public const string ApplicationJson = "application/json";
public const string ApplicationJsonPatch = "application/json-patch+json";
[Obsolete]
public const string TextJavascript = "text/javascript";
public const string ImagePjpeg = "image/pjpeg";
public const string ImageJpeg = "image/jpeg";
public const string TextXJqueryTmpl = "text/x-jquery-tmpl";
public const string ApplicationVndGoogleEarthKmlXml = "application/vnd.google-earth.kml+xml";
public const string ApplicationXLatex = "application/x-latex";
public const string VideoXMatroska = "video/x-matroska";
public const string ApplicationVndOpenxmlformatsOfficedocumentSpreadsheetmlSheet = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
public const string ApplicationVndMsExcel = "application/vnd.ms-excel";
public const string ApplicationVndOpenxmlformatsOfficedocumentPresentationmlPresentation = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
public const string ApplicationVndMsPowerpoint = "application/vnd.ms-powerpoint";
public const string ApplicationVndOpenxmlformatsOfficedocumentWordprocessingmlDocument = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
public const string ApplicationMsword = "application/msword";
public const string MultipartAlternative = "multipart/alternative";
public const string MultipartMixed = "multipart/mixed";
public const string MultipartRelated = "multipart/related";
public const string MultipartFormData = "multipart/form-data";
public const string ApplicationWwwFormUrlEncoded = "application/x-www-form-urlencoded";
public const string ApplicationVndMozillaXulXml = "application/vnd.mozilla.xul+xml";
public const string AudioMpeg = "audio/mpeg";
public const string AudioMp4 = "audio/mp4";
public const string VideoMp4 = "video/mp4";
public const string VideoMpeg = "video/mpeg";
public const string ModelMesh = "model/mesh";
public const string AudioBasic = "audio/basic";
public const string VideoOgg = "video/ogg";
public const string AudioOgg = "audio/ogg";
public const string ApplicationOgg = "application/ogg";
public const string ApplicationXopXml = "application/xop+xml";
public const string ApplicationVndOasisOpendocumentGraphics = "application/vnd.oasis.opendocument.graphics";
public const string ApplicationVndOasisOpendocumentPresentation = "application/vnd.oasis.opendocument.presentation";
public const string ApplicationVndOasisOpendocumentSpreadsheet = "application/vnd.oasis.opendocument.spreadsheet";
public const string ApplicationVndOasisOpendocumentText = "application/vnd.oasis.opendocument.text";
public const string ApplicationXPkcs12 = "application/x-pkcs12";
public const string ApplicationXPkcs7Certificates = "application/x-pkcs7-certificates";
public const string ApplicationXPkcs7Mime = "application/x-pkcs7-mime";
public const string ApplicationXPkcs7Certreqresp = "application/x-pkcs7-certreqresp";
public const string ApplicationXPkcs7Signature = "application/x-pkcs7-signature";
public const string ApplicationPdf = "application/pdf";
public const string ImagePng = "image/png";
public const string ApplicationPostscript = "application/postscript";
public const string VideoQuicktime = "video/quicktime";
public const string ApplicationXRarCompressed = "application/x-rar-compressed";
public const string AudioVndRnRealaudio = "audio/vnd.rn-realaudio";
public const string ApplicationRdfXml = "application/rdf+xml";
public const string ApplicationRssXml = "application/rss+xml";
public const string ApplicationSoapXml = "application/soap+xml";
public const string ApplicationXStuffit = "application/x-stuffit";
public const string ImageSvgXml = "image/svg+xml";
public const string ImageTiff = "image/tiff";
public const string ApplicationXTar = "application/x-tar";
public const string TextPlain = "text/plain";
public const string ApplicationXFontTtf = "application/x-font-ttf";
public const string TextVcard = "text/vcard";
public const string AudioVorbis = "audio/vorbis";
public const string AudioVndWave = "audio/vnd.wave";
public const string ApplicationFontWoff = "application/font-woff";
public const string VideoWebm = "video/webm";
public const string AudioWebm = "audio/webm";
public const string AudioXMsWax = "audio/x-ms-wax";
public const string AudioXMsWma = "audio/x-ms-wma";
public const string VideoXMsWmv = "video/x-ms-wmv";
public const string ModelVrml = "model/vrml";
public const string ModelX3DXml = "model/x3d+xml";
public const string ModelX3DBinary = "model/x3d+binary";
public const string ModelX3DVrml = "model/x3d+vrml";
public const string ApplicationXhtmlXml = "application/xhtml+xml";
public const string ApplicationZip = "application/zip";
更新资料
今天偶然发现了这个巨大的资源。
https://www.iana.org/assignments/media-types/media-types.xhtml
更新22-03-2020
正如Jon和James White在评论中提到的那样,您可以检查:
System.Net.Mime.MediaTypeNames