81 references to MailHeaderID
System.Net.Mail (81)
System\Net\Mail\MailHeaderInfo.cs (42)
16
public readonly
MailHeaderID
ID;
20
public HeaderInfo(
MailHeaderID
id, string name, bool isSingleton, bool isUserSettable, bool allowsUnicode)
34
new HeaderInfo(
MailHeaderID
.Bcc, "Bcc", true, false, true),
35
new HeaderInfo(
MailHeaderID
.Cc, "Cc", true, false, true),
36
new HeaderInfo(
MailHeaderID
.Comments, "Comments", false, true, true),
37
new HeaderInfo(
MailHeaderID
.ContentDescription, "Content-Description", true, true, true),
38
new HeaderInfo(
MailHeaderID
.ContentDisposition, "Content-Disposition", true, true, true),
39
new HeaderInfo(
MailHeaderID
.ContentID, "Content-ID", true, false, false),
40
new HeaderInfo(
MailHeaderID
.ContentLocation, "Content-Location", true, false, true),
41
new HeaderInfo(
MailHeaderID
.ContentTransferEncoding, "Content-Transfer-Encoding", true, false, false),
42
new HeaderInfo(
MailHeaderID
.ContentType, "Content-Type", true, false, false),
43
new HeaderInfo(
MailHeaderID
.Date, "Date", true, false, false),
44
new HeaderInfo(
MailHeaderID
.From, "From", true, false, true),
45
new HeaderInfo(
MailHeaderID
.Importance, "Importance", true, false, false),
46
new HeaderInfo(
MailHeaderID
.InReplyTo, "In-Reply-To", true, true, false),
47
new HeaderInfo(
MailHeaderID
.Keywords, "Keywords", false, true, true),
48
new HeaderInfo(
MailHeaderID
.Max, "Max", false, true, false),
49
new HeaderInfo(
MailHeaderID
.MessageID, "Message-ID", true, true, false),
50
new HeaderInfo(
MailHeaderID
.MimeVersion, "MIME-Version", true, false, false),
51
new HeaderInfo(
MailHeaderID
.Priority, "Priority", true, false, false),
52
new HeaderInfo(
MailHeaderID
.References, "References", true, true, false),
53
new HeaderInfo(
MailHeaderID
.ReplyTo, "Reply-To", true, false, true),
54
new HeaderInfo(
MailHeaderID
.ResentBcc, "Resent-Bcc", false, true, true),
55
new HeaderInfo(
MailHeaderID
.ResentCc, "Resent-Cc", false, true, true),
56
new HeaderInfo(
MailHeaderID
.ResentDate, "Resent-Date", false, true, false),
57
new HeaderInfo(
MailHeaderID
.ResentFrom, "Resent-From", false, true, true),
58
new HeaderInfo(
MailHeaderID
.ResentMessageID, "Resent-Message-ID", false, true, false),
59
new HeaderInfo(
MailHeaderID
.ResentSender, "Resent-Sender", false, true, true),
60
new HeaderInfo(
MailHeaderID
.ResentTo, "Resent-To", false, true, true),
61
new HeaderInfo(
MailHeaderID
.Sender, "Sender", true, false, true),
62
new HeaderInfo(
MailHeaderID
.Subject, "Subject", true, false, true),
63
new HeaderInfo(
MailHeaderID
.To, "To", true, false, true),
64
new HeaderInfo(
MailHeaderID
.XPriority, "X-Priority", true, false, false),
65
new HeaderInfo(
MailHeaderID
.XReceiver, "X-Receiver", false, true, true),
66
new HeaderInfo(
MailHeaderID
.XSender, "X-Sender", true, true, true)
74
var headers = new Dictionary<string, int>((int)
MailHeaderID
.ZMaxEnumValue + 1, StringComparer.OrdinalIgnoreCase);
83
internal static string? GetString(
MailHeaderID
id)
87
case
MailHeaderID
.Unknown:
88
case
MailHeaderID
.ZMaxEnumValue + 1:
95
internal static
MailHeaderID
GetID(string name)
98
return s_headerDictionary.TryGetValue(name, out id) ? (
MailHeaderID
)id :
MailHeaderID
.Unknown;
System\Net\Mail\MailPriority.cs (21)
358
string xSenderHeader = MailHeaderInfo.GetString(
MailHeaderID
.XSender)!;
365
string headerName = MailHeaderInfo.GetString(
MailHeaderID
.XReceiver)!;
387
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.ContentType)!);
389
Headers[MailHeaderInfo.GetString(
MailHeaderID
.MimeVersion)] = "1.0";
393
string headerName = MailHeaderInfo.GetString(
MailHeaderID
.Sender)!;
403
headerName = MailHeaderInfo.GetString(
MailHeaderID
.From)!;
406
headerName = MailHeaderInfo.GetString(
MailHeaderID
.To)!;
416
headerName = MailHeaderInfo.GetString(
MailHeaderID
.Cc)!;
426
headerName = MailHeaderInfo.GetString(
MailHeaderID
.ReplyTo)!;
440
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.Bcc)!);
444
Headers[MailHeaderInfo.GetString(
MailHeaderID
.XPriority)] = "1";
445
Headers[MailHeaderInfo.GetString(
MailHeaderID
.Priority)] = "urgent";
446
Headers[MailHeaderInfo.GetString(
MailHeaderID
.Importance)] = "high";
450
Headers[MailHeaderInfo.GetString(
MailHeaderID
.XPriority)] = "5";
451
Headers[MailHeaderInfo.GetString(
MailHeaderID
.Priority)] = "non-urgent";
452
Headers[MailHeaderInfo.GetString(
MailHeaderID
.Importance)] = "low";
457
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.XPriority)!);
458
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.Priority)!);
459
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.Importance)!);
462
Headers.InternalAdd(MailHeaderInfo.GetString(
MailHeaderID
.Date)!,
465
headerName = MailHeaderInfo.GetString(
MailHeaderID
.Subject)!;
System\Net\Mime\ContentDisposition.cs (2)
179
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentDisposition)!, ToString());
187
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentDisposition)!, ToString());
System\Net\Mime\ContentType.cs (2)
145
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentType)!, ToString());
153
headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentType)!, ToString());
System\Net\Mime\MimeBasePart.cs (8)
119
get { return Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentID)!]; }
124
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.ContentID));
128
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentID)] = value;
135
get { return Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentLocation)!]; }
140
Headers.Remove(MailHeaderInfo.GetString(
MailHeaderID
.ContentLocation));
144
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentLocation)] = value;
180
_headers!.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentType)!, _contentType.Encode(allowUnicode));
185
_headers.InternalSet(MailHeaderInfo.GetString(
MailHeaderID
.ContentDisposition)!, _contentDisposition.Encode(allowUnicode));
System\Net\Mime\MimePart.cs (6)
43
((HeaderCollection)Headers).InternalRemove(MailHeaderInfo.GetString(
MailHeaderID
.ContentDisposition)!);
56
string value = Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)!]!;
83
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)] = "base64";
87
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)] = "quoted-printable";
91
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)] = "7bit";
95
Headers[MailHeaderInfo.GetString(
MailHeaderID
.ContentTransferEncoding)] = "8bit";