Interface IMessageHeaders
The headers for a message
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public interface IMessageHeaders : IDictionary, ICollection, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable- Inherited Members
Properties
Count
int Count { get; }Property Value
ErrorChannel
Gets the error channel the message is for
object ErrorChannel { get; }Property Value
Id
Gets the ID header value
string Id { get; }Property Value
Keys
ICollection<string> Keys { get; }Property Value
ReplyChannel
Gets the reply channel the message is for
object ReplyChannel { get; }Property Value
Timestamp
Gets the timestamp header value
long? Timestamp { get; }Property Value
- long?
Values
ICollection<object> Values { get; }Property Value
Methods
GetEnumerator()
IEnumerator<KeyValuePair<string, object>> GetEnumerator()Returns
Get<T>(string)
Gets a header value given its key
T Get<T>(string key)Parameters
- keystring
- the name of the header 
Returns
- T
- the value or null if not found 
Type Parameters
- T
- the type of the value returned