Class AmqpValue
An AMQP Value section contains a single value.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Amqp.Framing
Assembly: Amqp.Net.dll
Syntax
public class AmqpValue : RestrictedDescribed
Constructors
AmqpValue()
Initializes an AmqpValue object.
Declaration
public AmqpValue()
Properties
Value
Gets or sets the value in the body section.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
ValueBuffer
Gets a ByteBuffer that contains the encoded value. A NULL value indicates that the message is not created by the decoder.
Declaration
public ByteBuffer ValueBuffer { get; }
Property Value
Type | Description |
---|---|
ByteBuffer |
Methods
WriteValue(ByteBuffer, Object)
Writes the value into the buffer using the default encoder. Override this method to encode the value using an extended or custom encoder.
Declaration
protected virtual void WriteValue(ByteBuffer buffer, object value)
Parameters
Type | Name | Description |
---|---|---|
ByteBuffer | buffer | The buffer to write the encoded object. |
System.Object | value | The object to be written. |