confluent-kafka-dotnet
Show / Hide Table of Contents

Class Header

Represents a kafka message header.

Inheritance
object
Header
Implements
IHeader
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.Kafka
Assembly: Confluent.Kafka.dll
Syntax
public class Header : IHeader
Remarks

Message headers are supported by v0.11 brokers and above.

Constructors

Header(string, byte[])

Create a new Header instance.

Declaration
public Header(string key, byte[] value)
Parameters
Type Name Description
string key

The header key.

byte[] value

The header value (may be null).

Properties

Key

The header key.

Declaration
public string Key { get; }
Property Value
Type Description
string

Methods

GetValueBytes()

Get the serialized header value data.

Declaration
public byte[] GetValueBytes()
Returns
Type Description
byte[]

Implements

IHeader
In this article