System\Net\Mail\Attachment.cs (27)
37_part.SetContent(contentStream);
42_part.SetContent(contentStream, null, mediaType);
47_part.SetContent(contentStream, name, mediaType);
52_part.SetContent(contentStream, contentType);
65_part.Dispose();
74_part.SetContent(stream, contentType);
82_part.SetContent(stream, null, mediaType);
89_part.Stream?.Close();
109_part.SetContent(new MemoryStream(buffer), contentType);
113_part.TransferEncoding = TransferEncoding.Base64;
117_part.TransferEncoding = TransferEncoding.QuotedPrintable;
125_part.Stream?.Close();
167_part.SetContent(new MemoryStream(buffer), contentType);
171_part.TransferEncoding = TransferEncoding.Base64;
175_part.TransferEncoding = TransferEncoding.QuotedPrintable;
182_part.ResetStream();
191return _part.Stream!;
200string? cid = _part.ContentID;
218_part.ContentID = null;
227_part.ContentID = "<" + value + ">";
236return _part.ContentType;
241_part.ContentType = value;
249return _part.TransferEncoding;
253_part.TransferEncoding = value;
262if (!Uri.TryCreate(_part.ContentLocation, UriKind.RelativeOrAbsolute, out uri))
271_part.ContentLocation = value == null ? null : value.IsAbsoluteUri ? value.AbsoluteUri : value.OriginalString;
279return _part;