confluent-kafka-dotnet
Show / Hide Table of Contents

Class Header

Represents a kafka message header.

Inheritance
System.Object
Header
Implements
IHeader
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Confluent.Kafka
Assembly: cs.temp.dll.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
System.String key

The header key.

System.Byte[] value

The header value (may be null).

Properties

Key

The header key.

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

Methods

GetValueBytes()

Get the serialized header value data.

Declaration
public byte[] GetValueBytes()
Returns
Type Description
System.Byte[]

Implements

IHeader
In This Article