Class BasicProperties
AMQP specification content header properties for content class "basic".
public sealed class BasicProperties : IBasicProperties, IReadOnlyBasicProperties, IAmqpHeader, IAmqpWriteable
- Inheritance
-
BasicProperties
- Implements
- Inherited Members
Constructors
BasicProperties()
public BasicProperties()
BasicProperties(IReadOnlyBasicProperties)
public BasicProperties(IReadOnlyBasicProperties input)
Parameters
input
IReadOnlyBasicProperties
Properties
AppId
Application Id.
public string? AppId { get; set; }
Property Value
ClusterId
Intra-cluster routing identifier (cluster id is deprecated in AMQP 0-9-1).
public string? ClusterId { get; set; }
Property Value
ContentEncoding
MIME content encoding.
public string? ContentEncoding { get; set; }
Property Value
ContentType
MIME content type.
public string? ContentType { get; set; }
Property Value
CorrelationId
Application correlation identifier.
public string? CorrelationId { get; set; }
Property Value
DeliveryMode
Non-persistent (1) or persistent (2).
public DeliveryModes DeliveryMode { get; set; }
Property Value
Expiration
Message expiration specification.
public string? Expiration { get; set; }
Property Value
Headers
Message header field table. Is of type IDictionary<TKey, TValue>.
public IDictionary<string, object?>? Headers { get; set; }
Property Value
MessageId
Application message Id.
public string? MessageId { get; set; }
Property Value
Persistent
Sets DeliveryMode to either persistent (2) or non-persistent (1).
public bool Persistent { get; set; }
Property Value
Priority
Message priority, 0 to 9.
public byte Priority { get; set; }
Property Value
ReplyTo
Destination to reply to.
public string? ReplyTo { get; set; }
Property Value
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; set; }
Property Value
Timestamp
Message timestamp.
public AmqpTimestamp Timestamp { get; set; }
Property Value
Type
Message type name.
public string? Type { get; set; }
Property Value
UserId
User Id.
public string? UserId { get; set; }
Property Value
Methods
ClearAppId()
Clear the AppId property.
public void ClearAppId()
ClearClusterId()
Clear the ClusterId property (cluster id is deprecated in AMQP 0-9-1).
public void ClearClusterId()
ClearContentEncoding()
Clear the ContentEncoding property.
public void ClearContentEncoding()
ClearContentType()
Clear the ContentType property.
public void ClearContentType()
ClearCorrelationId()
Clear the CorrelationId property.
public void ClearCorrelationId()
ClearDeliveryMode()
Clear the DeliveryMode property.
public void ClearDeliveryMode()
ClearExpiration()
Clear the Expiration property.
public void ClearExpiration()
ClearHeaders()
Clear the Headers property.
public void ClearHeaders()
ClearMessageId()
Clear the MessageId property.
public void ClearMessageId()
ClearPriority()
Clear the Priority property.
public void ClearPriority()
ClearReplyTo()
Clear the ReplyTo property.
public void ClearReplyTo()
ClearTimestamp()
Clear the Timestamp property.
public void ClearTimestamp()
ClearType()
Clear the Type property.
public void ClearType()
ClearUserId()
Clear the UserId property.
public void ClearUserId()
IsAppIdPresent()
Returns true if the AppId property is present.
public bool IsAppIdPresent()
Returns
IsClusterIdPresent()
Returns true if the ClusterId property is present (cluster id is deprecated in AMQP 0-9-1).
public bool IsClusterIdPresent()
Returns
IsContentEncodingPresent()
Returns true if the ContentEncoding property is present.
public bool IsContentEncodingPresent()
Returns
IsContentTypePresent()
Returns true if the ContentType property is present.
public bool IsContentTypePresent()
Returns
IsCorrelationIdPresent()
Returns true if the CorrelationId property is present.
public bool IsCorrelationIdPresent()
Returns
IsDeliveryModePresent()
Returns true if the DeliveryMode property is present.
public bool IsDeliveryModePresent()
Returns
IsExpirationPresent()
Returns true if the Expiration property is present.
public bool IsExpirationPresent()
Returns
IsHeadersPresent()
Returns true if the Headers property is present.
public bool IsHeadersPresent()
Returns
IsMessageIdPresent()
Returns true if the MessageId property is present.
public bool IsMessageIdPresent()
Returns
IsPriorityPresent()
Returns true if the Priority property is present.
public bool IsPriorityPresent()
Returns
IsReplyToPresent()
Returns true if the ReplyTo property is present.
public bool IsReplyToPresent()
Returns
IsTimestampPresent()
Returns true if the Timestamp property is present.
public bool IsTimestampPresent()
Returns
IsTypePresent()
Returns true if the Type property is present.
public bool IsTypePresent()
Returns
IsUserIdPresent()
Returns true if the UserId property is present.
public bool IsUserIdPresent()