3 instantiations of HeaderCollection
System.Net.Mail (3)
System\Net\Mail\MailPriority.cs (2)
191
_headers = new
HeaderCollection
();
217
_envelopeHeaders = new
HeaderCollection
();
System\Net\Mime\MimeBasePart.cs (1)
154
_headers ??= new
HeaderCollection
();
15 references to HeaderCollection
System.Net.Mail (15)
System\Net\Mail\MailPriority.cs (5)
30
private
HeaderCollection
? _headers;
31
private
HeaderCollection
? _envelopeHeaders;
185
internal
HeaderCollection
Headers
211
internal
HeaderCollection
EnvelopeHeaders
488
internal void EncodeHeaders(
HeaderCollection
headers, bool allowUnicode)
System\Net\Mime\ContentDisposition.cs (2)
173
internal void Set(string contentDisposition,
HeaderCollection
headers)
183
internal void PersistIfNeeded(
HeaderCollection
headers, bool forcePersist)
System\Net\Mime\ContentType.cs (2)
141
internal void Set(string contentType,
HeaderCollection
headers)
149
internal void PersistIfNeeded(
HeaderCollection
headers, bool forcePersist)
System\Net\Mime\MimeBasePart.cs (4)
16
private
HeaderCollection
? _headers;
173
_contentType.PersistIfNeeded((
HeaderCollection
)Headers, true);
179
_contentType!.PersistIfNeeded((
HeaderCollection
)Headers, false);
184
_contentDisposition.PersistIfNeeded((
HeaderCollection
)Headers, false);
System\Net\Mime\MimePart.cs (2)
43
((
HeaderCollection
)Headers).InternalRemove(MailHeaderInfo.GetString(MailHeaderID.ContentDisposition)!);
47
_contentDisposition!.PersistIfNeeded((
HeaderCollection
)Headers, true);