Share via


MailAttachment 類別

定義

警告

The recommended alternative is System.Net.Mail.Attachment. http://go.microsoft.com/fwlink/?linkid=14202

提供建構電子郵件附件的屬性和方法。 建議的替代做法: System.Net.Mail

public ref class MailAttachment
public class MailAttachment
[System.Obsolete("The recommended alternative is System.Net.Mail.Attachment. http://go.microsoft.com/fwlink/?linkid=14202")]
public class MailAttachment
type MailAttachment = class
[<System.Obsolete("The recommended alternative is System.Net.Mail.Attachment. http://go.microsoft.com/fwlink/?linkid=14202")>]
type MailAttachment = class
Public Class MailAttachment
繼承
MailAttachment
屬性

建構函式

MailAttachment(String)
已淘汰.

使用附件的指定檔案名稱,初始化 MailAttachment 類別的新執行個體。 依預設會將 Encoding 屬性設定為 UUEncode。 建議的替代做法: System.Net.Mail

MailAttachment(String, MailEncoding)
已淘汰.

使用指定檔案名稱和附件的編碼型別,初始化 MailAttachment 類別的新執行個體。 建議的替代做法: System.Net.Mail

屬性

Encoding
已淘汰.

取得電子郵件附件的編碼類型。 建議的替代做法: System.Net.Mail

Filename
已淘汰.

取得附件檔案的名稱。 建議的替代做法: System.Net.Mail

方法

Equals(Object)
已淘汰.

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

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

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

(繼承來源 Object)

適用於