How can I query IIS for MIME Type Mappings?

后端 未结 4 410
情歌与酒
情歌与酒 2020-12-16 01:15

How can I programatically read IIS\'s MIME types? I\'d like to use them when I stream data to my clients using WCF.

Any tips, or API would be appreciated

4条回答
  •  [愿得一人]
    2020-12-16 01:23

    Mime types registered to the system are defined in the registry under "HKEY_CLASSES_ROOT\Mime\Database\Content Type".

    Are you looking for mime types for a particular web site that is defined in IIS?

提交回复
热议问题