Share via


MessagePropertyFilter.ConnectorType Properti

Definisi

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

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

Nilai Properti

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

Atribut

Contoh

Contoh kode berikut menunjukkan penggunaan ConnectorType properti .

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

Keterangan

Properti ConnectorTypeMessage kelas diperlukan saat aplikasi mengatur properti pesan yang biasanya diatur oleh Antrean Pesan. Ini digunakan dalam dua instans berikut:

  • Ketika pesan diteruskan oleh aplikasi konektor, Message.ConnectorType diperlukan untuk aplikasi pengirim dan penerimaan untuk menginterpretasikan properti keamanan dan pengakuan pesan.

  • Saat mengirim pesan terenkripsi aplikasi, Message.ConnectorType properti menginformasikan Message Queuing untuk menggunakan kunci konten.

Berlaku untuk

Lihat juga