IContentHeader
Known direct subtypes:
BasicProperties
The specification code generator provides protocol-version-specific implementations of this interface. To obtain an implementation of this interface in a protocol-version-neutral way, use IModel.CreateBasicProperties().
Each property is readable, writable and clearable: a cleared property will not be transmitted over the wire. Properties on a fresh instance are clear by default.
| Type | Name | Summary |
|---|---|---|
string
|
AppId
(rw)
|
creating application id |
string
|
ClusterId
(rw)
|
intra-cluster routing identifier |
string
|
ContentEncoding
(rw)
|
MIME content encoding |
string
|
ContentType
(rw)
|
MIME content type |
string
|
CorrelationId
(rw)
|
application correlation identifier |
byte
|
DeliveryMode
(rw)
|
non-persistent (1) or persistent (2) |
string
|
Expiration
(rw)
|
message expiration specification |
IDictionary
|
Headers
(rw)
|
message header field table |
string
|
MessageId
(rw)
|
application message identifier |
byte
|
Priority
(rw)
|
message priority, 0 to 9 |
string
|
ReplyTo
(rw)
|
destination to reply to |
PublicationAddress
|
ReplyToAddress
(rw)
|
Convenience property; parses ReplyTo property using PublicationAddress.Parse, and serializes it using PublicationAddress.ToString. Returns null if ReplyTo property cannot be parsed by PublicationAddress.Parse. |
AmqpTimestamp
|
Timestamp
(rw)
|
message timestamp |
string
|
Type
(rw)
|
message type name |
string
|
UserId
(rw)
|
creating user id |
| Name | Summary |
|---|---|
void ClearAppId()
|
Clear the AppId property. |
void ClearClusterId()
|
Clear the ClusterId property. |
void ClearContentEncoding()
|
Clear the ContentEncoding property. |
void ClearContentType()
|
Clear the ContentType property. |
void ClearCorrelationId()
|
Clear the CorrelationId property. |
void ClearDeliveryMode()
|
Clear the DeliveryMode property. |
void ClearExpiration()
|
Clear the Expiration property. |
void ClearHeaders()
|
Clear the Headers property. |
void ClearMessageId()
|
Clear the MessageId property. |
void ClearPriority()
|
Clear the Priority property. |
void ClearReplyTo()
|
Clear the ReplyTo property. |
void ClearTimestamp()
|
Clear the Timestamp property. |
void ClearType()
|
Clear the Type property. |
void ClearUserId()
|
Clear the UserId property. |
void SetPersistent(bool persistent)
|
Sets DeliveryMode to either persistent (2) or non-persistent (1). |
void ClearContentEncoding()
| Return type |
void
|
|---|
void ClearCorrelationId()
| Return type |
void
|
|---|
void ClearDeliveryMode()
| Return type |
void
|
|---|
void SetPersistent(bool persistent)
| Return type |
void
|
||||
|---|---|---|---|---|---|
| Parameters |
|
The numbers 1 and 2 for delivery mode are "magic" in that they appear in the AMQP 0-8 and 0-9 specifications as part of the definition of the DeliveryMode Basic-class property, without being defined as named constants.
Calling this method causes DeliveryMode to take on a value. In order to reset DeliveryMode to the default empty condition, call ClearDeliveryMode.