MessagePropertyFilter.DestinationSymmetricKey プロパティ

定義

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

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

プロパティ値

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

属性

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

注釈

クラスの プロパティは DestinationSymmetricKeyMessage メッセージの暗号化に使用される対称キーを指定します。 これは、アプリケーションで暗号化されたメッセージを送信するとき、または暗号化されたメッセージを外部キューに送信するときに必要です。

外部キューは、メッセージ キュー以外のキュー システムMicrosoft存在します。 Microsoft メッセージ キューは、コネクタ アプリケーションを介してこのようなキューと通信します。

適用対象

こちらもご覧ください