Aracılığıyla paylaş


MessagePropertyFilter.ConnectorType Özellik

Tanım

İletiyi alırken veya göz atırken özellik bilgilerinin alınıp alınmayacağını ConnectorType belirten bir değer alır veya ayarlar.

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

Özellik Değeri

true bilgi almak ConnectorType için; aksi takdirde , false. Varsayılan değer: false.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin ConnectorType kullanımını gösterir.

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

Açıklamalar

Bir ConnectorType uygulama genellikle Message Queuing tarafından ayarlanan bir ileti özelliği ayarladığında sınıfının özelliği Message gereklidir. Aşağıdaki iki örnekte kullanılır:

  • Bir bağlayıcı uygulaması tarafından ileti geçirildiğinde, Message.ConnectorType gönderen ve alan uygulamaların iletinin güvenlik ve bildirim özelliklerini yorumlaması için gereklidir.

  • Uygulamayla şifrelenmiş iletiler gönderirken özelliği Message Message.ConnectorType Queuing'e simetrik anahtarı kullanmasını bildirir.

Şunlara uygulanır

Ayrıca bkz.