public static new MimeContentDisposition Parse(string mimeValue, bool readOnly) { MimeContentDisposition rtn = new MimeContentDisposition(); rtn.MimeParse(mimeValue, readOnly); return(rtn); }
public static MimePart NewAttachment(string name, MimeContentType contentType, byte[] data, int length) { MimePart part = new MimePart() { ContentType = contentType, ContentDisposition = MimeContentDisposition.NewAttachment(name), ContentTransferEncoding = MimeEncoding.Base64 }; part.ContentType.Name = name; part.SetContent(data, length); return(part); }