AttachmentBase 類別

定義

表示電子郵件附件的基底類別。 AttachmentAlternateViewLinkedResource 類別都衍生自這個類別。

public ref class AttachmentBase abstract : IDisposable
public abstract class AttachmentBase : IDisposable
type AttachmentBase = class
    interface IDisposable
Public MustInherit Class AttachmentBase
Implements IDisposable
繼承
AttachmentBase
衍生
實作

建構函式

AttachmentBase(Stream)

使用指定的 AttachmentBase 產生 Stream

AttachmentBase(Stream, ContentType)

使用指定的 AttachmentBaseStream,產生 ContentType

AttachmentBase(Stream, String)

使用指定的 AttachmentBase 和媒體類型,產生 Stream

AttachmentBase(String)

使用指定的檔案名稱,產生 AttachmentBase

AttachmentBase(String, ContentType)

使用指定的檔案名稱和內容類型,產生 AttachmentBase

AttachmentBase(String, String)

使用指定的檔案名稱和媒體類型,產生 AttachmentBase

屬性

ContentId

取得或設定這個附件的 MIME 內容識別碼。

ContentStream

取得這個附件的內容資料流。

ContentType

取得這個附件的內容類型。

TransferEncoding

取得或設定這個附件的編碼方式。

方法

Dispose()

釋放 AttachmentBase 使用的資源。

Dispose(Boolean)

釋放 AttachmentBase 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於