MessagePropertyFilter.SenderVersion 속성

정의

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

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

속성 값

SenderVersion 정보를 받는 경우 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

특성

예제

다음 코드 예제에서는 SenderVersion 속성입니다.

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

설명

SenderVersion 의 속성을 Message 클래스의 메시지 큐 메시지를 보내는 데 버전을 지정 합니다. 속성이 메시지 큐 버전 2.0 에서만 지원 되는 트랜잭션 처리 및 이상 또는 디지털 서명, 버전 1.0에서 보낸 메시지를 인증 하는 데 사용 되는 등의 기능을 사용 하는 경우 주의 해야 합니다.

Message.SenderVersion 메시지를 보낼 때 전송 큐 관리자에 의해 설정 됩니다.

적용 대상

추가 정보