Bagikan melalui


MessagePropertyFilter.TransactionStatusQueue Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan apakah akan mengambil TransactionStatusQueue informasi properti saat menerima atau mengintip pesan.

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

Nilai Properti

true untuk menerima TransactionStatusQueue informasi; jika tidak, false. Default adalah false.

Atribut

Contoh

Contoh kode berikut menunjukkan penggunaan TransactionStatusQueue properti .

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

Keterangan

TransactionStatusQueue Properti Message kelas mengidentifikasi antrean status transaksi pada komputer sumber. Properti digunakan untuk mengirim pesan pengakuan kembali ke aplikasi pengirim. Antrean status transaksi digunakan oleh aplikasi konektor saat menerima pesan transaksi yang dikirim ke antrean asing.

Antrean asing ada dalam sistem antrean selain Antrean Pesan Microsoft. Antrean Pesan Microsoft berkomunikasi dengan antrean tersebut melalui aplikasi konektor.

Berlaku untuk

Lihat juga