98 references to MailHeaderID
System (98)
net\System\Net\mail\ContentDisposition.cs (2)
252
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentDisposition), ToString());
260
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentDisposition), ToString());
net\System\Net\mail\ContentType.cs (2)
175
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentType), ToString());
182
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentType), ToString());
net\System\Net\mail\HeaderCollection.cs (15)
31
MailHeaderID
id = MailHeaderInfo.GetID(name);
33
if (id ==
MailHeaderID
.ContentType && part != null) {
35
} else if (id ==
MailHeaderID
.ContentDisposition && part is MimePart) {
51
MailHeaderID
id = MailHeaderInfo.GetID(name);
53
if (id ==
MailHeaderID
.ContentType && part != null) {
55
} else if (id ==
MailHeaderID
.ContentDisposition && part is MimePart) {
71
MailHeaderID
id = MailHeaderInfo.GetID(name);
73
if (id ==
MailHeaderID
.ContentType && part != null) {
75
} else if (id ==
MailHeaderID
.ContentDisposition && part is MimePart) {
122
MailHeaderID
id = MailHeaderInfo.GetID(name);
126
if (id ==
MailHeaderID
.ContentType && part != null) {
128
} else if (id ==
MailHeaderID
.ContentDisposition && part is MimePart) {
155
MailHeaderID
id = MailHeaderInfo.GetID(name);
159
if(id ==
MailHeaderID
.ContentType && part != null) {
161
} else if (id ==
MailHeaderID
.ContentDisposition && part is MimePart) {
net\System\Net\mail\MailHeaderInfo.cs (44)
55
public readonly
MailHeaderID
ID;
58
public HeaderInfo(
MailHeaderID
id, string name, bool isSingleton, bool isUserSettable, bool allowsUnicode) {
73
new HeaderInfo(
MailHeaderID
.Bcc, "Bcc", true, false, true),
74
new HeaderInfo(
MailHeaderID
.Cc, "Cc", true, false, true),
75
new HeaderInfo(
MailHeaderID
.Comments, "Comments", false, true, true),
76
new HeaderInfo(
MailHeaderID
.ContentDescription, "Content-Description", true, true, true),
77
new HeaderInfo(
MailHeaderID
.ContentDisposition, "Content-Disposition", true, true, true),
78
new HeaderInfo(
MailHeaderID
.ContentID, "Content-ID", true, false, false),
79
new HeaderInfo(
MailHeaderID
.ContentLocation, "Content-Location", true, false, true),
80
new HeaderInfo(
MailHeaderID
.ContentTransferEncoding, "Content-Transfer-Encoding", true, false, false),
81
new HeaderInfo(
MailHeaderID
.ContentType, "Content-Type", true, false, false),
82
new HeaderInfo(
MailHeaderID
.Date, "Date", true, false, false),
83
new HeaderInfo(
MailHeaderID
.From, "From", true, false, true),
84
new HeaderInfo(
MailHeaderID
.Importance, "Importance", true, false, false),
85
new HeaderInfo(
MailHeaderID
.InReplyTo, "In-Reply-To", true, true, false),
86
new HeaderInfo(
MailHeaderID
.Keywords, "Keywords", false, true, true),
87
new HeaderInfo(
MailHeaderID
.Max, "Max", false, true, false),
88
new HeaderInfo(
MailHeaderID
.MessageID, "Message-ID", true, true, false),
89
new HeaderInfo(
MailHeaderID
.MimeVersion, "MIME-Version", true, false, false),
90
new HeaderInfo(
MailHeaderID
.Priority, "Priority", true, false, false),
91
new HeaderInfo(
MailHeaderID
.References, "References", true, true, false),
92
new HeaderInfo(
MailHeaderID
.ReplyTo, "Reply-To", true, false, true),
93
new HeaderInfo(
MailHeaderID
.ResentBcc, "Resent-Bcc", false, true, true),
94
new HeaderInfo(
MailHeaderID
.ResentCc, "Resent-Cc", false, true, true),
95
new HeaderInfo(
MailHeaderID
.ResentDate, "Resent-Date", false, true, false),
96
new HeaderInfo(
MailHeaderID
.ResentFrom, "Resent-From", false, true, true),
97
new HeaderInfo(
MailHeaderID
.ResentMessageID, "Resent-Message-ID", false, true, false),
98
new HeaderInfo(
MailHeaderID
.ResentSender, "Resent-Sender", false, true, true),
99
new HeaderInfo(
MailHeaderID
.ResentTo, "Resent-To", false, true, true),
100
new HeaderInfo(
MailHeaderID
.Sender, "Sender", true, false, true),
101
new HeaderInfo(
MailHeaderID
.Subject, "Subject", true, false, true),
102
new HeaderInfo(
MailHeaderID
.To, "To", true, false, true),
103
new HeaderInfo(
MailHeaderID
.XPriority, "X-Priority", true, false, false),
104
new HeaderInfo(
MailHeaderID
.XReceiver, "X-Receiver", false, true, true),
105
new HeaderInfo(
MailHeaderID
.XSender, "X-Sender", true, true, true)
122
m_HeaderDictionary = new Dictionary<string, int>((int)
MailHeaderID
.ZMaxEnumValue + 1, StringComparer.OrdinalIgnoreCase);
128
internal static string GetString(
MailHeaderID
id) {
130
case
MailHeaderID
.Unknown:
131
case
MailHeaderID
.ZMaxEnumValue+1:
138
internal static
MailHeaderID
GetID(string name) {
141
return (
MailHeaderID
)id;
143
return
MailHeaderID
.Unknown;
176
internal static bool IsMatch(string name,
MailHeaderID
header) {
178
if(m_HeaderDictionary.TryGetValue(name, out index) && (
MailHeaderID
)index == header) {
net\System\Net\mail\Message.cs (21)
340
string xSenderHeader = MailHeaderInfo.GetString(
MailHeaderID
.XSender);
346
string headerName = MailHeaderInfo.GetString(
MailHeaderID
.XReceiver);
369
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.ContentType));
371
Headers[MailHeaderInfo.GetString(
MailHeaderID
.MimeVersion)] = "1.0";
375
headerName = MailHeaderInfo.GetString(
MailHeaderID
.Sender);
383
headerName = MailHeaderInfo.GetString(
MailHeaderID
.From);
386
headerName = MailHeaderInfo.GetString(
MailHeaderID
.To);
394
headerName = MailHeaderInfo.GetString(
MailHeaderID
.Cc);
402
headerName = MailHeaderInfo.GetString(
MailHeaderID
.ReplyTo);
413
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.Bcc));
416
Headers[MailHeaderInfo.GetString(
MailHeaderID
.XPriority)] = "1";
417
Headers[MailHeaderInfo.GetString(
MailHeaderID
.Priority)] = "urgent";
418
Headers[MailHeaderInfo.GetString(
MailHeaderID
.Importance)] = "high";
421
Headers[MailHeaderInfo.GetString(
MailHeaderID
.XPriority)] = "5";
422
Headers[MailHeaderInfo.GetString(
MailHeaderID
.Priority)] = "non-urgent";
423
Headers[MailHeaderInfo.GetString(
MailHeaderID
.Importance)] = "low";
427
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.XPriority));
428
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.Priority));
429
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.Importance));
432
Headers.InternalAdd(MailHeaderInfo.GetString(
MailHeaderID
.Date),
435
headerName = MailHeaderInfo.GetString(
MailHeaderID
.Subject);
net\System\Net\mail\MimeBasePart.cs (8)
139
return Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentID)];
144
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.ContentID));
148
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentID)] = value;
157
return Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentLocation)];
163
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.ContentLocation));
167
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentLocation)] = value;
208
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentType), contentType.Encode(allowUnicode));
212
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentDisposition),
net\System\Net\mail\MimePart.cs (6)
46
((HeaderCollection)Headers).InternalRemove(MailHeaderInfo.GetString(
MailHeaderID
.ContentDisposition));
56
string value = Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)];
71
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)] = "base64";
74
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)] = "quoted-printable";
77
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)] = "7bit";
80
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)] = "8bit";