MailAttachment MailAttachment MailAttachment MailAttachment Class

Definition

Warning

This API is now obsolete.

Provides properties and methods for constructing an email attachment. Recommended alternative: System.Net.Mail.

public ref 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
Public Class MailAttachment
Inheritance
MailAttachmentMailAttachmentMailAttachmentMailAttachment
Attributes

Constructors

MailAttachment(String) MailAttachment(String) MailAttachment(String) 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.

MailAttachment(String, MailEncoding) MailAttachment(String, MailEncoding) MailAttachment(String, MailEncoding) 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.

Properties

Encoding Encoding Encoding Encoding

Gets the type of encoding for the email attachment. Recommended alternative: System.Net.Mail.

Filename Filename Filename Filename

Gets the name of the attachment file. Recommended alternative: System.Net.Mail.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to