* TagAttribute.cs: attributes can be stored as encoded html so we
[mono.git] / mcs / class / System.Web / System.Web.Mail / MailHeader.cs
1 //
2 // System.Web.Mail.MailHeader.cs
3 //
4 // Author(s):
5 //   Per Arneng <pt99par@student.bth.se>
6 //
7 //
8 using System;
9 using System.Collections;
10 using System.Collections.Specialized;
11
12 namespace System.Web.Mail {
13     
14     // This class represents the header of a mail with
15     // all the header fields.
16     internal class MailHeader {
17         
18         protected NameValueCollection data = new NameValueCollection();
19         
20         public string To {
21             get { return data[ "To" ]; }
22             set { data[ "To" ] = value; }
23         }
24
25         public string From {
26             get { return data[ "From" ]; }
27             set { data[ "From" ] = value; }
28         }
29
30         public string Cc {
31             get { return data[ "Cc" ]; }
32             set { data[ "Cc" ] = value; }
33         }
34         
35         public string Bcc {
36             get { return data[ "Bcc" ]; }
37             set { data[ "Bcc" ] = value; }
38         }
39         
40         public string Subject {
41             get { return data[ "Subject" ]; }
42             set { data[ "Subject" ] = value; }
43         }
44
45         public string Importance {
46             get { return data[ "Importance" ]; }
47             set { data[ "Importance" ] = value; }
48         }
49         
50         public string Priority {
51             get { return data[ "Priority" ]; }
52             set { data[ "Priority" ] = value; }
53         }
54         
55         public string MimeVersion {
56             get { return data[ "Mime-Version" ]; }
57             set { data[ "Mime-Version" ] = value; }
58         }
59
60         public string ContentType {
61             get { return data[ "Content-Type" ]; }
62             set { data[ "Content-Type" ] = value; }
63         } 
64         
65         public string ContentTransferEncoding{
66             get { return data[ "Content-Transfer-Encoding" ]; }
67             set { data[ "Content-Transfer-Encoding" ] = value; }
68         } 
69
70         public string ContentDisposition {
71             get { return data[ "Content-Disposition" ]; }
72             set { data[ "Content-Disposition" ] = value; }
73         } 
74
75         public string ContentBase {
76             get { return data[ "Content-Base" ]; }
77             set { data[ "Content-Base" ] = value; }
78         }
79         
80         public string ContentLocation {
81             get { return data[ "Content-Location" ]; }
82             set { data[ "Content-Location" ] = value; }
83         }       
84         
85         
86         public NameValueCollection Data {
87            get { return data; } 
88         }
89         
90     }
91
92 }