System.Messaging Reference (Document! X Sample)



System.Messaging Namespace > Message Class : AcknowledgeType Property
AcknowledgeType Property (Message)
Gets or sets the type of acknowledgment message to be returned to the sending application.
Syntax
'Declaration
 
<ReadOnlyAttribute(True)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<MessagingDescriptionAttribute("Specifies the type of acknowledgment messages the system posts (in the administration queue) and when acknowledgments are returned.")>
Public Property AcknowledgeType As AcknowledgeTypes
'Usage
 
Dim instance As Message
Dim value As AcknowledgeTypes
 
instance.AcknowledgeType = value
 
value = instance.AcknowledgeType
[ReadOnly(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MessagingDescription("Specifies the type of acknowledgment messages the system posts (in the administration queue) and when acknowledgments are returned.")]
public AcknowledgeTypes AcknowledgeType {get; set;}
[ReadOnly(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MessagingDescription("Specifies the type of acknowledgment messages the system posts (in the administration queue) and when acknowledgments are returned.")]
public:
property AcknowledgeTypes AcknowledgeType {
   AcknowledgeTypes get();
   void set (    AcknowledgeTypes value);
}

Property Value

One of the AcknowledgeTypes values, which represent both the types of acknowledgment messages the system posts in the administration queue and the conditions under which acknowledgments are returned to the sending application. The default is None.
Exceptions
ExceptionDescription
The message is filtered to ignore the AcknowledgeType 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