This documentation is archived and is not being maintained.

MailAttachment Constructor

Initializes a new instance of the MailAttachment class. Recommended alternative: System.Net.Mail.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method MailAttachment(String) Initializes a new instance of the MailAttachment class with the specified file name for the attachment. Sets the Encoding property to UUEncode by default. Recommended alternative: System.Net.Mail.
Public method MailAttachment(String, MailEncoding) Initializes a new instance of the MailAttachment class with the specified file name and encoding type for the attachment. Recommended alternative: System.Net.Mail.
Top
Show: