AttachmentBase

AttachmentBase class

Base class for mail attachment.

public abstract class AttachmentBase : IDisposable

Properties

Name Description
ContentId { get; set; } Gets or sets the content id.
ContentStream { get; set; } Gets or sets the content stream.
ContentType { get; set; } Gets or sets the type of the content.
virtual Headers { get; } Gets headers collection of attachment.
TransferEncoding { get; set; } Gets or sets the transfer encoding.

Methods

Name Description
Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
virtual Save(Stream) Saves the specified stream.
virtual Save(string) Saves the specified file name.

See Also