共用方式為


MailMessage.Priority 屬性

定義

取得或設定電子郵件訊息的優先權。 建議的替代做法: System.Net.Mail

public:
 property System::Web::Mail::MailPriority Priority { System::Web::Mail::MailPriority get(); void set(System::Web::Mail::MailPriority value); };
public System.Web.Mail.MailPriority Priority { get; set; }
member this.Priority : System.Web.Mail.MailPriority with get, set
Public Property Priority As MailPriority

屬性值

其中一個 MailPriority 值。

範例

MailMessage MyMessage = new MailMessage();
MyMessage.Priority = MailPriority.Low;
Dim  MyMessage As MailMessage = New MailMessage()
MyMessage.Priority = MailPriority.Low

適用於