共用方式為


MessagePropertyFilter.TransactionStatusQueue 屬性

定義

取得或設定值,指出在接收或窺視訊息時是否要擷取 TransactionStatusQueue 屬性資訊。

public:
 property bool TransactionStatusQueue { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgTransactionStatusQueue")]
public bool TransactionStatusQueue { get; set; }
[<System.Messaging.MessagingDescription("MsgTransactionStatusQueue")>]
member this.TransactionStatusQueue : bool with get, set
Public Property TransactionStatusQueue As Boolean

屬性值

true 表示接收 TransactionStatusQueue 資訊,否則為 false。 預設為 false

屬性

範例

下列程式代碼範例示範 如何使用 TransactionStatusQueue 屬性。

// Set the queue's MessageReadPropertyFilter property to 
// enable the message's TransactionStatusQueue property.
queue->MessageReadPropertyFilter->
    TransactionStatusQueue = true;

// Peek at the message. Time out after ten seconds 
// in case the message was not delivered.
orderMessage = queue->Peek(TimeSpan::FromSeconds(10.0));

// Display the value of the message's 
// TransactionStatusqueue->QueueName property.
Console::WriteLine(
    "Message.TransactionStatusqueue->QueueName: {0}", 
    orderMessage->TransactionStatusQueue->QueueName);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's TransactionStatusQueue property.
queue.MessageReadPropertyFilter.TransactionStatusQueue = true;

// Peek at the message. Time out after ten seconds in case the message
// was not delivered.
orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0));

// Display the value of the message's TransactionStatusQueue.QueueName
// property.
Console.WriteLine("Message.TransactionStatusQueue.QueueName: {0}",
    orderMessage.TransactionStatusQueue.QueueName);

備註

類別 TransactionStatusQueueMessage 屬性會識別來源計算機上的交易狀態佇列。 屬性用於將通知訊息傳回傳送至傳送的應用程式。 當接收傳送至外部佇列的交易訊息時,連接器應用程式會使用交易狀態佇列。

外部佇列存在於 Microsoft 消息佇列以外的佇列系統中。 Microsoft Message Queuing 會透過連接器應用程式與這類佇列通訊。

適用於

另請參閱