AttachmentBase AttachmentBase AttachmentBase 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
AttachmentBaseAttachmentBaseAttachmentBaseAttachmentBase
Derived
Implements

Constructors

AttachmentBase(Stream) AttachmentBase(Stream) AttachmentBase(Stream) AttachmentBase(Stream)

Instantiates an AttachmentBase with the specified Stream.

AttachmentBase(Stream, ContentType) AttachmentBase(Stream, ContentType) AttachmentBase(Stream, ContentType) AttachmentBase(Stream, ContentType)

Instantiates an AttachmentBase with the specified Stream and ContentType.

AttachmentBase(Stream, String) AttachmentBase(Stream, String) AttachmentBase(Stream, String) AttachmentBase(Stream, String)

Instantiates an AttachmentBase with the specified Stream and media type.

AttachmentBase(String) AttachmentBase(String) AttachmentBase(String) AttachmentBase(String)

Instantiates an AttachmentBase with the specified file name.

AttachmentBase(String, ContentType) AttachmentBase(String, ContentType) AttachmentBase(String, ContentType) AttachmentBase(String, ContentType)

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

AttachmentBase(String, String) AttachmentBase(String, String) AttachmentBase(String, String) AttachmentBase(String, String)

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

Properties

ContentId ContentId ContentId ContentId

Gets or sets the MIME content ID for this attachment.

ContentStream ContentStream ContentStream ContentStream

Gets the content stream of this attachment.

ContentType ContentType ContentType ContentType

Gets the content type of this attachment.

TransferEncoding TransferEncoding TransferEncoding TransferEncoding

Gets or sets the encoding of this attachment.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases the resources used by the AttachmentBase.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

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