MailAttachment Constructor

 

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

Namespace:   System.Web.Mail
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodMailAttachment(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.

System_CAPS_pubmethodMailAttachment(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.

Return to top
Show: