MsmqMessage<T>.Acknowledgment Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the Acknowledgment that is associated with this message.
public:
property Nullable<System::Messaging::Acknowledgment> Acknowledgment { Nullable<System::Messaging::Acknowledgment> get(); };
public System.Messaging.Acknowledgment? Acknowledgment { get; }
member this.Acknowledgment : Nullable<System.Messaging.Acknowledgment>
Public ReadOnly Property Acknowledgment As Nullable(Of Acknowledgment)
Property Value
The Acknowledgment that is associated with this message. The default value is Acknowledgement.None.
Examples
if (message.Acknowledgment == Acknowledgment.Receive)
Console.WriteLine("Message sent with Receive acknowledgment");
If message.Acknowledgment = Acknowledgment.Receive Then
Console.WriteLine("Message sent with Receive acknowledgment")
End If
Remarks
When you receive a message from an administration queue, you can use this property to verify the status of the original message.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET