Επεξεργασία

Κοινή χρήση μέσω


AttachmentBase Class

Definition

Base class that represents an email attachment. Classes Attachment, AlternateView, and LinkedResource derive from this class.

public ref class AttachmentBase abstract : IDisposable
public abstract class AttachmentBase : IDisposable
type AttachmentBase = class
    interface IDisposable
Public MustInherit Class AttachmentBase
Implements IDisposable
Inheritance
AttachmentBase
Derived
Implements

Constructors

AttachmentBase(Stream, ContentType)

Instantiates an AttachmentBase with the specified Stream and ContentType.

AttachmentBase(Stream, String)

Instantiates an AttachmentBase with the specified Stream and media type.

AttachmentBase(Stream)

Instantiates an AttachmentBase with the specified Stream.

AttachmentBase(String, ContentType)

Instantiates an AttachmentBase with the specified file name and content type.

AttachmentBase(String, String)

Instantiates an AttachmentBase with the specified file name and media type.

AttachmentBase(String)

Instantiates an AttachmentBase with the specified file name.

Properties

ContentId

Gets or sets the MIME content ID for this attachment.

ContentStream

Gets the content stream of this attachment.

ContentType

Gets the content type of this attachment.

TransferEncoding

Gets or sets the encoding of this attachment.

Methods

Dispose()

Releases the resources used by the AttachmentBase.

Dispose(Boolean)

Releases the unmanaged resources used by the AttachmentBase and optionally releases the managed resources.

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)

Applies to