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)
30private HeaderCollection? _headers; 31private HeaderCollection? _envelopeHeaders; 185internal HeaderCollection Headers 211internal HeaderCollection EnvelopeHeaders 488internal void EncodeHeaders(HeaderCollection headers, bool allowUnicode)
System\Net\Mime\ContentDisposition.cs (2)
173internal void Set(string contentDisposition, HeaderCollection headers) 183internal void PersistIfNeeded(HeaderCollection headers, bool forcePersist)
System\Net\Mime\ContentType.cs (2)
141internal void Set(string contentType, HeaderCollection headers) 149internal void PersistIfNeeded(HeaderCollection headers, bool forcePersist)
System\Net\Mime\MimeBasePart.cs (4)
16private 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);