Show / Hide Table of Contents

# Class MessageAck

##### Inheritance

System.Object
BaseDataStructure
BaseCommand
MessageAck

##### Implements

Command
DataStructure
System.ICloneable

##### Inherited Members

BaseCommand.CommandId
BaseCommand.GetHashCode()
BaseCommand.Equals(Object)
BaseCommand.GetDataStructureTypeAsString(Int32)
BaseCommand.IsBrokerInfo
BaseCommand.IsConnectionControl
BaseCommand.IsConnectionInfo
BaseCommand.IsConnectionError
BaseCommand.IsConsumerControl
BaseCommand.IsConsumerInfo
BaseCommand.IsControlCommand
BaseCommand.IsDestinationInfo
BaseCommand.IsFlushCommand
BaseCommand.IsKeepAliveInfo
BaseCommand.IsMessage
BaseCommand.IsMessageDispatch
BaseCommand.IsMessageDispatchNotification
BaseCommand.IsMessagePull
BaseCommand.IsProducerAck
BaseCommand.IsProducerInfo
BaseCommand.IsRemoveInfo
BaseCommand.IsRemoveSubscriptionInfo
BaseCommand.IsReplayCommand
BaseCommand.IsResponse
BaseCommand.IsSessionInfo
BaseCommand.IsShutdownInfo
BaseCommand.IsTransactionInfo
BaseCommand.IsWireFormatInfo
BaseCommand.ResponseRequired
BaseCommand.Clone()
BaseDataStructure.IsMarshallAware()
BaseDataStructure.BeforeMarshall(OpenWireFormat)
BaseDataStructure.AfterMarshall(OpenWireFormat)
BaseDataStructure.BeforeUnmarshall(OpenWireFormat)
BaseDataStructure.AfterUnmarshall(OpenWireFormat)
BaseDataStructure.SetMarshalledForm(OpenWireFormat, Byte[])
BaseDataStructure.GetMarshalledForm(OpenWireFormat)
BaseDataStructure.HashCode(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)

###### Namespace: Apache.NMS.ActiveMQ.Commands

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public class MessageAck : BaseCommand, Command, DataStructure, ICloneable

### Constructors

| Improve this Doc View Source

#### MessageAck()

##### Declaration

    public MessageAck()

| Improve this Doc View Source

#### MessageAck(Message, Byte, Int32)

##### Declaration

    public MessageAck(Message message, byte ackType, int messageCount)

##### Parameters

Type | Name | Description
--- | --- | ---
Message | message |
System.Byte | ackType |
System.Int32 | messageCount |

| Improve this Doc View Source

#### MessageAck(MessageDispatch, Byte, Int32)

##### Declaration

    public MessageAck(MessageDispatch dispatch, byte ackType, int messageCount)

##### Parameters

Type | Name | Description
--- | --- | ---
MessageDispatch | dispatch |
System.Byte | ackType |
System.Int32 | messageCount |

### Fields

| Improve this Doc View Source

#### ID_MESSAGEACK

##### Declaration

    public const byte ID_MESSAGEACK = 22

##### Field Value

Type | Description
--- | ---
System.Byte |

### Properties

| Improve this Doc View Source

#### AckType

##### Declaration

    public byte AckType { get; set; }

##### Property Value

Type | Description
--- | ---
System.Byte |

| Improve this Doc View Source

#### ConsumerId

##### Declaration

    public ConsumerId ConsumerId { get; set; }

##### Property Value

Type | Description
--- | ---
ConsumerId |

| Improve this Doc View Source

#### Destination

##### Declaration

    public ActiveMQDestination Destination { get; set; }

##### Property Value

Type | Description
--- | ---
ActiveMQDestination |

| Improve this Doc View Source

#### FirstMessageId

##### Declaration

    public MessageId FirstMessageId { get; set; }

##### Property Value

Type | Description
--- | ---
MessageId |

| Improve this Doc View Source

#### IsMessageAck

##### Declaration

    public override bool IsMessageAck { get; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

##### Overrides

BaseCommand.IsMessageAck
| Improve this Doc View Source

#### LastMessageId

##### Declaration

    public MessageId LastMessageId { get; set; }

##### Property Value

Type | Description
--- | ---
MessageId |

| Improve this Doc View Source

#### MessageCount

##### Declaration

    public int MessageCount { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### PoisonCause

##### Declaration

    public BrokerError PoisonCause { get; set; }

##### Property Value

Type | Description
--- | ---
BrokerError |

| Improve this Doc View Source

#### TransactionId

##### Declaration

    public TransactionId TransactionId { get; set; }

##### Property Value

Type | Description
--- | ---
TransactionId |

### Methods

| Improve this Doc View Source

#### GetDataStructureType()

##### Declaration

    public override byte GetDataStructureType()

##### Returns

Type | Description
--- | ---
System.Byte |

##### Overrides

BaseDataStructure.GetDataStructureType()
| Improve this Doc View Source

#### ToString()

##### Declaration

    public override string ToString()

##### Returns

Type | Description
--- | ---
System.String |

##### Overrides

BaseCommand.ToString()
| Improve this Doc View Source

#### Visit(ICommandVisitor)

##### Declaration

    public override Response Visit(ICommandVisitor visitor)

##### Parameters

Type | Name | Description
--- | --- | ---
ICommandVisitor | visitor |

##### Returns

Type | Description
--- | ---
Response |

##### Overrides

BaseCommand.Visit(ICommandVisitor)

### Implements

Command
DataStructure
System.ICloneable