net\System\Net\mail\Attachment.cs (29)
35part.SetContent(contentStream);
39part.SetContent(contentStream, null, mediaType);
43part.SetContent(contentStream, name, mediaType);
47part.SetContent(contentStream, contentType);
60part.Dispose();
90part.SetContent(stream, contentType);
107part.SetContent(stream,null,mediaType);
115if (part.Stream != null) {
116part.Stream.Close();
133part.SetContent(new MemoryStream(buffer),contentType);
137part.TransferEncoding = TransferEncoding.Base64;
140part.TransferEncoding = TransferEncoding.QuotedPrintable;
149if (part.Stream != null) {
150part.Stream.Close();
186part.SetContent(new MemoryStream(buffer),contentType);
189part.TransferEncoding = TransferEncoding.Base64;
192part.TransferEncoding = TransferEncoding.QuotedPrintable;
198part.ResetStream();
207return part.Stream;
215string cid = part.ContentID;
233part.ContentID = null;
242part.ContentID = "<" + value + ">";
249return part.ContentType;
253part.ContentType = value;
259return part.TransferEncoding;
262part.TransferEncoding = value;
271if (!Uri.TryCreate(part.ContentLocation, UriKind.RelativeOrAbsolute, out uri))
280part.ContentLocation = value == null ? null : value.IsAbsoluteUri ? value.AbsoluteUri : value.OriginalString;
286return part;