Acknowledgment Property (Message)
Gets the classification of acknowledgment that this message represents.
Syntax
'Declaration <ReadOnlyAttribute(True)> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <MessagingDescriptionAttribute("Gets the classification of acknowledgment that this message represents.")> Public ReadOnly Property Acknowledgment As Acknowledgment
'Usage Dim instance As Message Dim value As Acknowledgment value = instance.Acknowledgment
[ReadOnly(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("Gets the classification of acknowledgment that this message represents.")] public Acknowledgment Acknowledgment {get;}
[ReadOnly(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("Gets the classification of acknowledgment that this message represents.")] public: property Acknowledgment Acknowledgment { Acknowledgment get(); }
Property Value
One of the Acknowledgment enumeration values.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message has not been sent. This property can only be read on messages retrieved from a queue.-or-The message queue is filtered to ignore the MessagePropertyFilter.Acknowledgment property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also