MessagePropertyFilter.ConnectorType プロパティ

定義

メッセージを受信またはピークするときに ConnectorType プロパティ情報を取得するかどうかを示す値を取得または設定します。

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

プロパティ値

ConnectorType 情報を受信する場合は true。それ以外の場合は false。 既定値は、false です。

属性

次のコード例では、 プロパティの使用方法を 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);
// 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);

注釈

クラスの Message プロパティはConnectorType、アプリケーションがメッセージ キューによって通常設定されるメッセージ プロパティを設定する場合に必要です。 これは、次の 2 つのインスタンスで使用されます。

  • コネクタ アプリケーションによってメッセージが渡されると、 Message.ConnectorType メッセージのセキュリティと受信確認のプロパティを解釈するために、送受信アプリケーションに が必要です。

  • アプリケーションで暗号化されたメッセージを送信する場合、 プロパティは Message.ConnectorType 対称キーを使用するようにメッセージ キューに通知します。

適用対象

こちらもご覧ください