語言

MsmqIntegrationMessageProperty.Priority 屬性

定義

接收或設定訊息優先權,決定訊息在佇列中的位置。

public:
 property Nullable<System::Messaging::MessagePriority> Priority { Nullable<System::Messaging::MessagePriority> get(); void set(Nullable<System::Messaging::MessagePriority> value); };
public System.Messaging.MessagePriority? Priority { get; set; }
member this.Priority : Nullable<System.Messaging.MessagePriority> with get, set
Public Property Priority As Nullable(Of MessagePriority)

屬性值

訊息優先權。 這些值由 定義。MessagePriority

例外狀況

該值並非空值,也不在值 MessagePriority 範圍內。

備註

優先權會影響訊息排隊(MSMQ)在訊息途中及抵達目的地後如何處理訊息。 在路由過程中優先處理較高優先權的訊息,並插入至目的佇列的最前端。 具有相同優先權的訊息會依其抵達時間被放入佇列。

適用於