Bagikan melalui


MessagePropertyFilter.DestinationSymmetricKey Properti

Definisi

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

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

Nilai Properti

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

Atribut

Contoh

Contoh kode berikut menunjukkan penggunaan DestinationSymmetricKey properti .

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's 
// DestinationSymmetricKey property.
queue->MessageReadPropertyFilter->
    DestinationSymmetricKey = 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 
// DestinationSymmetricKey property.
Console::WriteLine(
    "Message.DestinationSymmetricKey: {0}", 
    orderMessage->DestinationSymmetricKey);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's DestinationSymmetricKey property.
queue.MessageReadPropertyFilter.DestinationSymmetricKey = 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 DestinationSymmetricKey property.
Console.WriteLine("Message.DestinationSymmetricKey: {0}",
    orderMessage.DestinationSymmetricKey);

Keterangan

Properti DestinationSymmetricKey kelas Message menentukan kunci konten yang digunakan untuk mengenkripsi pesan. Ini diperlukan ketika Anda mengirim pesan terenkripsi aplikasi, atau ketika Anda mengirim pesan terenkripsi 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