MailMessage.BodyFormat 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置电子邮件正文的内容类型。 建议使用的替代项:System.Net.Mail。
public:
 property System::Web::Mail::MailFormat BodyFormat { System::Web::Mail::MailFormat get(); void set(System::Web::Mail::MailFormat value); };public System.Web.Mail.MailFormat BodyFormat { get; set; }member this.BodyFormat : System.Web.Mail.MailFormat with get, setPublic Property BodyFormat As MailFormat属性值
MailFormat 值之一。
示例
MailMessage MyMessage = new MailMessage();
MyMessage.BodyFormat = MailFormat.Html;
Dim MyMessage As MailMessage = New MailMessage()
MyMessage.BodyFormat = MailFormat.Html