MessagePropertyFilter.TransactionStatusQueue Egenskap

Definition

Hämtar eller anger ett värde som anger om du vill hämta TransactionStatusQueue egenskapsinformation när du tar emot eller granskar ett meddelande.

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

Egenskapsvärde

true för att ta emot TransactionStatusQueue information, falseannars . Standardvärdet är false.

Attribut

Exempel

Följande kodexempel visar hur egenskapen används 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);

Kommentarer

Egenskapen TransactionStatusQueue för Message klassen identifierar transaktionsstatuskön på källdatorn. Egenskapen används för att skicka bekräftelsemeddelanden tillbaka till det sändande programmet. Transaktionsstatuskön används av anslutningsprogram när du tar emot transaktionsmeddelanden som skickas till en sekundär kö.

Det finns en sekundär kö i ett annat kösystem än Microsoft Message Queuing. Microsoft Message Queuing kommunicerar med sådana köer via ett anslutningsprogram.

Gäller för

Se även