public static new  MimeContentDisposition  Parse(string mimeValue, bool readOnly)
        {
            MimeContentDisposition rtn = new MimeContentDisposition();

            rtn.MimeParse(mimeValue, readOnly);

            return(rtn);
        }
Ejemplo n.º 2
0
        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);
        }