MessagePropertyFilter.TransactionStatusQueue Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać TransactionStatusQueue informacje o właściwości podczas odbierania lub podglądu komunikatu.

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

Wartość właściwości

true aby otrzymywać TransactionStatusQueue informacje; w przeciwnym razie false. Wartość domyślna to false.

Atrybuty

Przykłady

Poniższy przykład kodu przedstawia użycie TransactionStatusQueue właściwości.

// 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);

Uwagi

Właściwość TransactionStatusQueueMessage klasy identyfikuje kolejkę stanu transakcji na komputerze źródłowym. Właściwość jest używana do wysyłania komunikatów potwierdzenia z powrotem do aplikacji wysyłającej. Kolejka stanu transakcji jest używana przez aplikacje łączników podczas odbierania komunikatów transakcyjnych wysyłanych do kolejki obcej.

Kolejka zagraniczna istnieje w systemie kolejkowania innym niż kolejkowanie komunikatów firmy Microsoft. Kolejkowanie komunikatów firmy Microsoft komunikuje się z takimi kolejkami za pośrednictwem aplikacji łącznika.

Dotyczy

Zobacz też