Interface IStreamProperties
Common AMQP Stream content-class headers interface, spanning the union of the functionality offered by versions 0-8, 0-8qpid, 0-9 and 0-9-1 of AMQP.
Namespace: RabbitMQ.Client
Assembly: RabbitMQ.Client.dll
Syntax
public interface IStreamProperties : IContentHeader
Remarks
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.CreateStreamProperties().
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.
Properties
| Edit this page View SourceContentEncoding
MIME content encoding.
Declaration
string ContentEncoding { get; set; }
Property Value
Type | Description |
---|---|
string |
ContentType
MIME content type.
Declaration
string ContentType { get; set; }
Property Value
Type | Description |
---|---|
string |
Headers
Message header field table.
Declaration
IDictionary<string, object> Headers { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |
Priority
Message priority, 0 to 9.
Declaration
byte Priority { get; set; }
Property Value
Type | Description |
---|---|
byte |
Timestamp
Message timestamp.
Declaration
AmqpTimestamp Timestamp { get; set; }
Property Value
Type | Description |
---|---|
AmqpTimestamp |
Methods
| Edit this page View SourceClearContentEncoding()
Clear the ContentEncoding property.
Declaration
void ClearContentEncoding()
ClearContentType()
Clear the ContentType property.
Declaration
void ClearContentType()
ClearHeaders()
Clear the Headers property.
Declaration
void ClearHeaders()
ClearPriority()
Clear the Priority property.
Declaration
void ClearPriority()
ClearTimestamp()
Clear the Timestamp property.
Declaration
void ClearTimestamp()
IsContentEncodingPresent()
Returns true if the ContentEncoding property is present.
Declaration
bool IsContentEncodingPresent()
Returns
Type | Description |
---|---|
bool |
IsContentTypePresent()
Returns true if the ContentType property is present.
Declaration
bool IsContentTypePresent()
Returns
Type | Description |
---|---|
bool |
IsHeadersPresent()
Returns true if the Headers property is present.
Declaration
bool IsHeadersPresent()
Returns
Type | Description |
---|---|
bool |
IsPriorityPresent()
Returns true if the Priority property is present.
Declaration
bool IsPriorityPresent()
Returns
Type | Description |
---|---|
bool |
IsTimestampPresent()
Returns true if the Timestamp property is present.
Declaration
bool IsTimestampPresent()
Returns
Type | Description |
---|---|
bool |