Share via


MessagePropertyFilter.SenderId 속성

정의

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

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

속성 값

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

특성

예제

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

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

설명

합니다 SenderId 의 속성을 Message 클래스는 메시지를 인증 하는 경우 수신 큐 관리자가 주로 사용 됩니다. 속성은 메시지 큐에서 설정 되 고 큐 관리자가 메시지를 보낸 사람 및 보낸 사람에 게에 수신 큐에 액세스 권한이 있는지 확인 하는 데 사용 됩니다.

적용 대상

추가 정보