ValueBody Class
An AMQP message body of type Value. This represents a single encoded object.
- Inheritance
-
ValueBody
Constructor
ValueBody(c_message, encoding='UTF-8')
Parameters
Name | Description |
---|---|
c_message
Required
|
|
encoding
|
default value: UTF-8
|
Variables
Name | Description |
---|---|
type
|
The body type. This should always be ValueType |
data
|
The data contained in the message body. The value of the encoded object |
Methods
set |
Set a value as the message body. This can be any Python data type and it will be automatically encoded into an AMQP type. If a specific AMQP type is required, a types.AMQPType can be used. |
set
Set a value as the message body. This can be any Python data type and it will be automatically encoded into an AMQP type. If a specific AMQP type is required, a types.AMQPType can be used.
set(value)
Parameters
Name | Description |
---|---|
data
Required
|
The data to send in the body. |
value
Required
|
|
Attributes
data
type
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for