Table of Contents

Class ReadOnlyBasicProperties

Namespace
RabbitMQ.Client
Assembly
RabbitMQ.Client.dll

AMQP specification content header properties for content class "basic"

public sealed class ReadOnlyBasicProperties : IReadOnlyBasicProperties
Inheritance
ReadOnlyBasicProperties
Implements
Inherited Members

Constructors

ReadOnlyBasicProperties(ReadOnlySpan<byte>)

public ReadOnlyBasicProperties(ReadOnlySpan<byte> span)

Parameters

span ReadOnlySpan<byte>

Properties

AppId

Application Id.

public string? AppId { get; }

Property Value

string

ClusterId

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

public string? ClusterId { get; }

Property Value

string

ContentEncoding

MIME content encoding.

public string? ContentEncoding { get; }

Property Value

string

ContentType

MIME content type.

public string? ContentType { get; }

Property Value

string

CorrelationId

Application correlation identifier.

public string? CorrelationId { get; }

Property Value

string

DeliveryMode

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

public DeliveryModes DeliveryMode { get; }

Property Value

DeliveryModes

Expiration

Message expiration specification.

public string? Expiration { get; }

Property Value

string

Headers

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

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

Property Value

IDictionary<string, object>

MessageId

Application message Id.

public string? MessageId { get; }

Property Value

string

Persistent

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

public bool Persistent { get; }

Property Value

bool

Priority

Message priority, 0 to 9.

public byte Priority { get; }

Property Value

byte

ReplyTo

Destination to reply to.

public 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?).

public PublicationAddress? ReplyToAddress { get; }

Property Value

PublicationAddress

Timestamp

Message timestamp.

public AmqpTimestamp Timestamp { get; }

Property Value

AmqpTimestamp

Type

Message type name.

public string? Type { get; }

Property Value

string

UserId

User Id.

public string? UserId { get; }

Property Value

string

Methods

IsAppIdPresent()

Returns true if the AppId property is present.

public bool IsAppIdPresent()

Returns

bool

IsClusterIdPresent()

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

public bool IsClusterIdPresent()

Returns

bool

IsContentEncodingPresent()

Returns true if the ContentEncoding property is present.

public bool IsContentEncodingPresent()

Returns

bool

IsContentTypePresent()

Returns true if the ContentType property is present.

public bool IsContentTypePresent()

Returns

bool

IsCorrelationIdPresent()

Returns true if the CorrelationId property is present.

public bool IsCorrelationIdPresent()

Returns

bool

IsDeliveryModePresent()

Returns true if the DeliveryMode property is present.

public bool IsDeliveryModePresent()

Returns

bool

IsExpirationPresent()

Returns true if the Expiration property is present.

public bool IsExpirationPresent()

Returns

bool

IsHeadersPresent()

Returns true if the Headers property is present.

public bool IsHeadersPresent()

Returns

bool

IsMessageIdPresent()

Returns true if the MessageId property is present.

public bool IsMessageIdPresent()

Returns

bool

IsPriorityPresent()

Returns true if the Priority property is present.

public bool IsPriorityPresent()

Returns

bool

IsReplyToPresent()

Returns true if the ReplyTo property is present.

public bool IsReplyToPresent()

Returns

bool

IsTimestampPresent()

Returns true if the Timestamp property is present.

public bool IsTimestampPresent()

Returns

bool

IsTypePresent()

Returns true if the Type property is present.

public bool IsTypePresent()

Returns

bool

IsUserIdPresent()

Returns true if the UserId property is present.

public bool IsUserIdPresent()

Returns

bool