Table of Contents

Interface IStreamProperties

Namespace
RabbitMQ.Client
Assembly
RabbitMQ.Client.dll

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.

public interface IStreamProperties : IContentHeader
Inherited Members

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

ContentEncoding

MIME content encoding.

string ContentEncoding { get; set; }

Property Value

string

ContentType

MIME content type.

string ContentType { get; set; }

Property Value

string

Headers

Message header field table.

IDictionary<string, object> Headers { get; set; }

Property Value

IDictionary<string, object>

Priority

Message priority, 0 to 9.

byte Priority { get; set; }

Property Value

byte

Timestamp

Message timestamp.

AmqpTimestamp Timestamp { get; set; }

Property Value

AmqpTimestamp

Methods

ClearContentEncoding()

Clear the ContentEncoding property.

void ClearContentEncoding()

ClearContentType()

Clear the ContentType property.

void ClearContentType()

ClearHeaders()

Clear the Headers property.

void ClearHeaders()

ClearPriority()

Clear the Priority property.

void ClearPriority()

ClearTimestamp()

Clear the Timestamp property.

void ClearTimestamp()

IsContentEncodingPresent()

Returns true if the ContentEncoding property is present.

bool IsContentEncodingPresent()

Returns

bool

IsContentTypePresent()

Returns true if the ContentType property is present.

bool IsContentTypePresent()

Returns

bool

IsHeadersPresent()

Returns true if the Headers property is present.

bool IsHeadersPresent()

Returns

bool

IsPriorityPresent()

Returns true if the Priority property is present.

bool IsPriorityPresent()

Returns

bool

IsTimestampPresent()

Returns true if the Timestamp property is present.

bool IsTimestampPresent()

Returns

bool