다음을 통해 공유


MessagePropertyFilter.EncryptionAlgorithm 속성

정의

메시지를 받거나 피킹할 때 속성 정보를 검색 EncryptionAlgorithm 할지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

정보를 수신하려면 &이고, 그렇지 않으면 .입니다. 기본값은 false입니다.

특성

예제

다음 코드 예제에서는 속성의 사용을 보여 줍니다 EncryptionAlgorithm .

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

설명

메시지가 프라이빗인 경우 메시지가 수신될 때 전송 및 암호 해독되기 전에 암호화됩니다. 클래스의 Message 속성은 EncryptionAlgorithm 개인 메시지의 메시지 본문을 암호화하는 데 사용되는 알고리즘을 지정합니다.

적용 대상

추가 정보