public static Attachment CreateAttachmentFromString(string content, string name, Encoding contentEncoding, string mediaType)
 {
     Attachment attachment = new Attachment();
     attachment.SetContentFromString(content, contentEncoding, mediaType);
     attachment.Name = name;
     return attachment;
 }
 public static Attachment CreateAttachmentFromString(string content, string name)
 {
     Attachment attachment = new Attachment();
     attachment.SetContentFromString(content, null, string.Empty);
     attachment.Name = name;
     return attachment;
 }
 public static Attachment CreateAttachmentFromString(string content, ContentType contentType)
 {
     Attachment attachment = new Attachment();
     attachment.SetContentFromString(content, contentType);
     attachment.Name = contentType.Name;
     return attachment;
 }
Exemplo n.º 4
0
        public static Attachment CreateAttachmentFromString(string content, ContentType contentType)
        {
            Attachment a = new Attachment();

            a.SetContentFromString(content, contentType);
            a.Name = contentType.Name;
            return(a);
        }
Exemplo n.º 5
0
        public static Attachment CreateAttachmentFromString(string content, string name, Encoding contentEncoding, string mediaType)
        {
            Attachment a = new Attachment();

            a.SetContentFromString(content, contentEncoding, mediaType);
            a.Name = name;
            return(a);
        }
Exemplo n.º 6
0
        public static Attachment CreateAttachmentFromString(string content, string name)
        {
            Attachment a = new Attachment();

            a.SetContentFromString(content, null, String.Empty);
            a.Name = name;
            return(a);
        }