MessagePropertyFilter.HashAlgorithm 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
메시지를 받거나 피킹할 때 속성 정보를 검색 HashAlgorithm 할지 여부를 나타내는 값을 가져오거나 설정합니다.
public:
property bool HashAlgorithm { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgHashAlgorithm")]
public bool HashAlgorithm { get; set; }
[<System.Messaging.MessagingDescription("MsgHashAlgorithm")>]
member this.HashAlgorithm : bool with get, set
Public Property HashAlgorithm As Boolean
속성 값
false입니다.
- 특성
예제
다음 코드 예제에서는 속성의 사용을 보여 줍니다 HashAlgorithm .
// Set the queue's MessageReadPropertyFilter property
// to enable the message's HashAlgorithm property.
queue->MessageReadPropertyFilter->HashAlgorithm = 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
// HashAlgorithm property.
Console::WriteLine("Message.HashAlgorithm: {0}",
orderMessage->HashAlgorithm);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's HashAlgorithm property.
queue.MessageReadPropertyFilter.HashAlgorithm = 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 HashAlgorithm property.
Console.WriteLine("Message.HashAlgorithm: {0}",
orderMessage.HashAlgorithm);
설명
클래스의 Message 속성은 HashAlgorithm 메시지 큐에서 메시지를 인증할 때 사용하는 해시 알고리즘을 식별합니다. 해시 알고리즘은 메시지에 대한 디지털 서명을 만들 때도 사용됩니다.