views:

268

answers:

2

For "text/html" the following works: System.Net.Mime.MediaTypeNames.Text.Html

+2  A: 

There isn't a built in constant in the current .NET Framework BCL. There are many MIME types that don't have a constant there.

Mehrdad Afshari
+1  A: 

The framework just provides some basic/generic commonly used media types. The list of vendor specific MIME types changes too frequently for these to be burned into the framework so you'll need to do this one yourself.

Kev