System.Net.Mail.Attachment Members

The members of System.Net.Mail.Attachment are listed below.

See Also: Inherited members from System.Net.Mail.AttachmentBase

Public Constructors

Initializes a new instance of the System.Net.Mail.Attachment class with the specified content string.

Initializes a new instance of the System.Net.Mail.Attachment class with the specified stream and content type.

Initializes a new instance of the System.Net.Mail.Attachment class with the specified stream and name.

Initializes a new instance of the System.Net.Mail.Attachment class with the specified content string and System.Net.Mime.ContentType.

Initializes a new instance of the System.Net.Mail.Attachment class with the specified content string and MIME type information.

Initializes a new instance of the System.Net.Mail.Attachment class with the specified stream, name, and MIME type information.

Public Properties

[read-only]
ContentDispositionSystem.Net.Mime.ContentDisposition.

Gets the MIME content disposition for this attachment.

Namestring.

Gets or sets the MIME content type name value in the content type associated with this attachment.

NameEncodingSystem.Text.Encoding.

Specifies the encoding for the System.Net.Mail.Attachment Attachment.Name.

Public Methods

static
CreateAttachmentFromString(string, System.Net.Mime.ContentType) : Attachment

Creates a mail attachment using the content from the specified string, and the specified System.Net.Mime.ContentType.

static
CreateAttachmentFromString(string, string) : Attachment

Creates a mail attachment using the content from the specified string, and the specified MIME content type name.

static
CreateAttachmentFromString(string, string, System.Text.Encoding, string) : Attachment

Creates a mail attachment using the content from the specified string, the specified MIME content type name, character encoding, and MIME header information for the attachment.