MailAttachment Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
The recommended alternative is System.Net.Mail.Attachment. http://go.microsoft.com/fwlink/?linkid=14202
Provides properties and methods for constructing an email attachment. Recommended alternative: System.Net.Mail.
public ref class MailAttachment
public class MailAttachment
[System.Obsolete("The recommended alternative is System.Net.Mail.Attachment. http://go.microsoft.com/fwlink/?linkid=14202")]
public class MailAttachment
type MailAttachment = class
[<System.Obsolete("The recommended alternative is System.Net.Mail.Attachment. http://go.microsoft.com/fwlink/?linkid=14202")>]
type MailAttachment = class
Public Class MailAttachment
- Inheritance
-
MailAttachment
- Attributes
Constructors
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. |
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. |
Properties
Encoding |
Gets the type of encoding for the email attachment. Recommended alternative: System.Net.Mail. |
Filename |
Gets the name of the attachment file. Recommended alternative: System.Net.Mail. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |