Share via


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

설명

DestinationSymmetricKey 의 속성을 Message 클래스는 메시지를 암호화 하는 데 대칭 키를 지정 합니다. 애플리케이션에서 암호화 된 메시지를 보낼 때 또는 외부 큐로 암호화 된 메시지를 보내면 됩니다.

외부 큐 Microsoft Message Queuing 이외의 큐 시스템에 존재합니다. Microsoft Message Queuing 커넥터 애플리케이션을 통해 이러한 큐를 사용 하 여 통신합니다.

적용 대상

추가 정보