Table of Contents

Interface IReadOnlyBasicProperties

Namespace
RabbitMQ.Client
Assembly
RabbitMQ.Client.dll

The AMQP Basic headers class interface, spanning the union of the functionality offered by versions 0-8, 0-8qpid, 0-9 and 0-9-1 of AMQP.

public interface IReadOnlyBasicProperties

Properties

AppId

Application Id.

string? AppId { get; }

Property Value

string

ClusterId

Intra-cluster routing identifier (cluster id is deprecated in AMQP 0-9-1).

string? ClusterId { get; }

Property Value

string

ContentEncoding

MIME content encoding.

string? ContentEncoding { get; }

Property Value

string

ContentType

MIME content type.

string? ContentType { get; }

Property Value

string

CorrelationId

Application correlation identifier.

string? CorrelationId { get; }

Property Value

string

DeliveryMode

Non-persistent (1) or persistent (2).

DeliveryModes DeliveryMode { get; }

Property Value

DeliveryModes

Expiration

Message expiration specification.

string? Expiration { get; }

Property Value

string

Headers

Message header field table. Is of type IDictionary<TKey, TValue>.

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

Property Value

IDictionary<string, object>

MessageId

Application message Id.

string? MessageId { get; }

Property Value

string

Persistent

Sets DeliveryMode to either persistent (2) or non-persistent (1).

bool Persistent { get; }

Property Value

bool

Priority

Message priority, 0 to 9.

byte Priority { get; }

Property Value

byte

ReplyTo

Destination to reply to.

string? ReplyTo { get; }

Property Value

string

ReplyToAddress

Convenience property; parses ReplyTo property using TryParse(string?, out PublicationAddress?), and serializes it using ToString(). Returns null if ReplyTo property cannot be parsed by TryParse(string?, out PublicationAddress?).

PublicationAddress? ReplyToAddress { get; }

Property Value

PublicationAddress

Timestamp

Message timestamp.

AmqpTimestamp Timestamp { get; }

Property Value

AmqpTimestamp

Type

Message type name.

string? Type { get; }

Property Value

string

UserId

User Id.

string? UserId { get; }

Property Value

string

Methods

IsAppIdPresent()

Returns true if the AppId property is present.

bool IsAppIdPresent()

Returns

bool

IsClusterIdPresent()

Returns true if the ClusterId property is present (cluster id is deprecated in AMQP 0-9-1).

bool IsClusterIdPresent()

Returns

bool

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

IsCorrelationIdPresent()

Returns true if the CorrelationId property is present.

bool IsCorrelationIdPresent()

Returns

bool

IsDeliveryModePresent()

Returns true if the DeliveryMode property is present.

bool IsDeliveryModePresent()

Returns

bool

IsExpirationPresent()

Returns true if the Expiration property is present.

bool IsExpirationPresent()

Returns

bool

IsHeadersPresent()

Returns true if the Headers property is present.

bool IsHeadersPresent()

Returns

bool

IsMessageIdPresent()

Returns true if the MessageId property is present.

bool IsMessageIdPresent()

Returns

bool

IsPriorityPresent()

Returns true if the Priority property is present.

bool IsPriorityPresent()

Returns

bool

IsReplyToPresent()

Returns true if the ReplyTo property is present.

bool IsReplyToPresent()

Returns

bool

IsTimestampPresent()

Returns true if the Timestamp property is present.

bool IsTimestampPresent()

Returns

bool

IsTypePresent()

Returns true if the Type property is present.

bool IsTypePresent()

Returns

bool

IsUserIdPresent()

Returns true if the UserId property is present.

bool IsUserIdPresent()

Returns

bool