System.Net.Mail.Attachment public class Attachment : AttachmentBase Documentation public ContentDisposition ContentDisposition { get; } public string Name { get; set; } public Encoding NameEncoding { get; set; } public Attachment(Stream contentStream, ContentType contentType) public Attachment(Stream contentStream, string name) public Attachment(Stream contentStream, string name, string mediaType) public Attachment(string fileName) public Attachment(string fileName, ContentType contentType) public Attachment(string fileName, string mediaType) public static Attachment CreateAttachmentFromString(string content, ContentType contentType) public static Attachment CreateAttachmentFromString(string content, string name) public static Attachment CreateAttachmentFromString(string content, string name, Encoding contentEncoding, string mediaType)