Message.Acknowledgment Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the classification of acknowledgment that this message represents.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public Acknowledgment Acknowledgment { get; }

Property Value

Type: System.Messaging.Acknowledgment

One of the Acknowledgment enumeration values.

Exception Condition

The message has not been sent. This property can only be read on messages retrieved from a queue.


The message queue is filtered to ignore the Acknowledgment property.

When you receive a message from an administration queue, read the Acknowledgment property to verify the status of the original message.

When a message is sent to its destination queue, Message Queuing can be requested to post an acknowledgment message. Such a message can indicate, for example, whether the message arrived and was retrieved within specified time-outs, or it can indicate what went wrong in the case of delivery failure. The destination queue returns acknowledgment messages and posts them to the administration queue specified in the original message's AdministrationQueue property. The Id property of an acknowledgment message identifies the acknowledgment message, not the original message. You can find the identifier of the original message in the acknowledgment Message instance's CorrelationId property.

If this Message instance represents an acknowledgment message, the Acknowledgment property specifies the type of acknowledgment. Otherwise, the Acknowledgment property contains the value Normal.

Use the AcknowledgeType property of the original message to specify the circumstances under which acknowledgments will be returned.

.NET Framework
Available since 1.1
Return to top