MailMessage.IsBodyHtml 屬性

定義

取得或設定值,指出郵件訊息主體是否採用 HTML 格式。

public:
 property bool IsBodyHtml { bool get(); void set(bool value); };
public bool IsBodyHtml { get; set; }
member this.IsBodyHtml : bool with get, set
Public Property IsBodyHtml As Boolean

屬性值

Boolean

true 如果郵件本文為 HTML,則為 ;else false . 預設為 false

適用於