ICloneable
IContentHeader
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 |
|---|---|---|
|
AppId (rw)
|
creating application id |
|
ClusterId (rw)
|
intra-cluster routing identifier |
|
ContentEncoding (rw)
|
MIME content encoding |
|
ContentType (rw)
|
MIME content type |
|
CorrelationId (rw)
|
application correlation identifier |
|
DeliveryMode (rw)
|
non-persistent (1) or persistent (2) |
|
Expiration (rw)
|
message expiration specification |
|
Headers (rw)
|
message header field table |
|
MessageId (rw)
|
application message identifier |
|
Priority (rw)
|
message priority, 0 to 9 |
|
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 |
|
Type (rw)
|
message type name |
|
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. |
bool IsAppIdPresent()
|
Returns true iff the AppId property is present. |
bool IsClusterIdPresent()
|
Returns true iff the ClusterId property is present. |
bool IsContentEncodingPresent()
|
Returns true iff the ContentEncoding property is present. |
bool IsContentTypePresent()
|
Returns true iff the ContentType property is present. |
bool IsCorrelationIdPresent()
|
Returns true iff the CorrelationId property is present. |
bool IsDeliveryModePresent()
|
Returns true iff the DeliveryMode property is present. |
bool IsExpirationPresent()
|
Returns true iff the Expiration property is present. |
bool IsHeadersPresent()
|
Returns true iff the Headers property is present. |
bool IsMessageIdPresent()
|
Returns true iff the MessageId property is present. |
bool IsPriorityPresent()
|
Returns true iff the Priority property is present. |
bool IsReplyToPresent()
|
Returns true iff the ReplyTo property is present. |
bool IsTimestampPresent()
|
Returns true iff the Timestamp property is present. |
bool IsTypePresent()
|
Returns true iff the Type property is present. |
bool IsUserIdPresent()
|
Returns true iff the UserId property is present. |
void SetPersistent(bool persistent)
|
Sets DeliveryMode to either persistent (2) or non-persistent (1). |
void ClearContentEncoding()
| Return type | |
|---|
void ClearCorrelationId()
| Return type | |
|---|
void ClearDeliveryMode()
| Return type | |
|---|
bool IsAppIdPresent()
| Return type | |
|---|
bool IsClusterIdPresent()
| Return type | |
|---|
bool IsContentEncodingPresent()
| Return type | |
|---|
bool IsContentTypePresent()
| Return type | |
|---|
bool IsCorrelationIdPresent()
| Return type | |
|---|
bool IsDeliveryModePresent()
| Return type | |
|---|
bool IsExpirationPresent()
| Return type | |
|---|
bool IsHeadersPresent()
| Return type | |
|---|
bool IsMessageIdPresent()
| Return type | |
|---|
bool IsPriorityPresent()
| Return type | |
|---|
bool IsReplyToPresent()
| Return type | |
|---|
bool IsTimestampPresent()
| Return type | |
|---|
bool IsTypePresent()
| Return type | |
|---|
bool IsUserIdPresent()
| Return type | |
|---|
void SetPersistent(bool persistent)
| Return type | |
||||
|---|---|---|---|---|---|
| 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.