Hunny Software Library Reference

MediaType Class

Class that represents a MIME media-type.

For a list of all members of this type, see MediaType Members.

System.Object
   Node
      FieldBody
         MediaType

[Visual Basic]
Public Class MediaType
Inherits FieldBody
[C#]
public class MediaType : FieldBody

Remarks

MediaType represents a field body for the Content-Type header field as described in RFC 2045. This field body identifies the kind of data contained in the body of a message or body part. A media type is described by two keywords: a primary type (or just type) and a subtype. RFC 2046 specifies the seven primary types text, multipart, message, image, audio, video, and application. RFC 2077 adds the new primary type model.

MediaType has methods that allow you to set or get the type and subtype as byte strings. It also contains a list of Parameter objects that represent the parameters of the field body.

Requirements

Namespace: Hunny.Mime

Assembly: Hunny.Mime (in Hunny.Mime.dll)

See Also

MediaType Members | Hunny.Mime Namespace