Show / Hide Table of Contents

# Class BaseCommand

##### Inheritance

System.Object
BaseDataStructure
BaseCommand
BrokerError
BrokerInfo
ConnectionControl
ConnectionError
ConnectionInfo
ConsumerControl
ConsumerInfo
ControlCommand
DestinationInfo
FlushCommand
KeepAliveInfo
Message
MessageAck
MessageDispatch
MessageDispatchNotification
MessagePull
ProducerAck
ProducerInfo
RemoveInfo
RemoveSubscriptionInfo
ReplayCommand
Response
SessionInfo
ShutdownInfo
TransactionInfo
WireFormatInfo

##### Implements

Command
DataStructure
System.ICloneable

##### Inherited Members

BaseDataStructure.GetDataStructureType()
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 abstract class BaseCommand : BaseDataStructure, Command, DataStructure, ICloneable

### Properties

| Improve this Doc View Source

#### CommandId

##### Declaration

    public int CommandId { get; set; }

##### Property Value

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

| Improve this Doc View Source

#### IsBrokerInfo

##### Declaration

    public virtual bool IsBrokerInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsConnectionControl

##### Declaration

    public virtual bool IsConnectionControl { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsConnectionError

##### Declaration

    public virtual bool IsConnectionError { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsConnectionInfo

##### Declaration

    public virtual bool IsConnectionInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsConsumerControl

##### Declaration

    public virtual bool IsConsumerControl { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsConsumerInfo

##### Declaration

    public virtual bool IsConsumerInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsControlCommand

##### Declaration

    public virtual bool IsControlCommand { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsDestinationInfo

##### Declaration

    public virtual bool IsDestinationInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsFlushCommand

##### Declaration

    public virtual bool IsFlushCommand { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsKeepAliveInfo

##### Declaration

    public virtual bool IsKeepAliveInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsMessage

##### Declaration

    public virtual bool IsMessage { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsMessageAck

##### Declaration

    public virtual bool IsMessageAck { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsMessageDispatch

##### Declaration

    public virtual bool IsMessageDispatch { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsMessageDispatchNotification

##### Declaration

    public virtual bool IsMessageDispatchNotification { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsMessagePull

##### Declaration

    public virtual bool IsMessagePull { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsProducerAck

##### Declaration

    public virtual bool IsProducerAck { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsProducerInfo

##### Declaration

    public virtual bool IsProducerInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsRemoveInfo

##### Declaration

    public virtual bool IsRemoveInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsRemoveSubscriptionInfo

##### Declaration

    public virtual bool IsRemoveSubscriptionInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsReplayCommand

##### Declaration

    public virtual bool IsReplayCommand { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsResponse

##### Declaration

    public virtual bool IsResponse { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsSessionInfo

##### Declaration

    public virtual bool IsSessionInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsShutdownInfo

##### Declaration

    public virtual bool IsShutdownInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsTransactionInfo

##### Declaration

    public virtual bool IsTransactionInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### IsWireFormatInfo

##### Declaration

    public virtual bool IsWireFormatInfo { get; }

##### Property Value

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

| Improve this Doc View Source

#### ResponseRequired

##### Declaration

    public virtual bool ResponseRequired { get; set; }

##### Property Value

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

### Methods

| Improve this Doc View Source

#### Clone()

##### Declaration

    public override object Clone()

##### Returns

Type | Description
--- | ---
System.Object |

##### Overrides

BaseDataStructure.Clone()
| Improve this Doc View Source

#### Equals(Object)

##### Declaration

    public override bool Equals(object that)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Object | that |

##### Returns

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

##### Overrides

System.Object.Equals(System.Object)
| Improve this Doc View Source

#### GetDataStructureTypeAsString(Int32)

##### Declaration

    public static string GetDataStructureTypeAsString(int type)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | type |

##### Returns

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

| Improve this Doc View Source

#### GetHashCode()

##### Declaration

    public override int GetHashCode()

##### Returns

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

##### Overrides

System.Object.GetHashCode()
| Improve this Doc View Source

#### ToString()

##### Declaration

    public override string ToString()

##### Returns

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

##### Overrides

System.Object.ToString()
| Improve this Doc View Source

#### Visit(ICommandVisitor)

##### Declaration

    public virtual Response Visit(ICommandVisitor visitor)

##### Parameters

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

##### Returns

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

### Implements

Command
DataStructure
System.ICloneable