Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » General » Downloads
 
Add your own
alternative version

A C# Implementation of Mime De/encode

, 21 Aug 2005 CPOL
A C# implementation of Mime de/encode
using System;

namespace MIME
{
	/// <summary>
	/// 
	/// </summary>
	public class MimeConst
	{
		public MimeConst()
		{
			// 
			// TODO: Add constructor logic here
			//
		}

		// field names
		public static string MimeVersion { get{return "MIME-Version";} }
		public static string ContentType { get{ return "Content-Type";} }
		public static string TransferEncoding { get{return "Content-Transfer-Encoding";} }
		public static string ContentID { get{return "Content-ID";} }
		public static string ContentDescription { get{return "Content-Description";} }
		public static string ContentDisposition { get{return "Content-Disposition";} }

		// parameter names
		public static string Charset { get{return "charset";} }
		public static string Name { get{return "name";} }
		public static string Filename { get{return "filename";} }
		public static string Boundary { get{return "boundary";} }

		// parameter values
		public static string Encoding7Bit { get{return "7bit";} }
		public static string Encoding8Bit { get{return "8bit";} }
		public static string EncodingBinary { get{return "binary";} }
		public static string EncodingQP { get{return "quoted-printable";} }
		public static string EncodingBase64 { get{return "base64";} }

		public static string MediaText { get{return "text";} }
		public static string MediaImage { get{return "image";} }
		public static string MediaAudio { get{return "audio";} }
		public static string MediaVideo { get{return "vedio";} }
		public static string MediaApplication { get{return "application";} }
		public static string MediaMultiPart { get{return "multipart";} }
		public static string MediaMessage { get{return "message";} }
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

tauyoung
Web Developer
China China
I think I have to start coding my life now...Smile | :)

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141223.1 | Last Updated 22 Aug 2005
Article Copyright 2005 by tauyoung
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid