Event​Data Class

Definition

Represents the event sent and received from an Event Hubs stream. It contains the body of the event, a user-defined property bag, and various metadata describing the event, such as its offset in the partition and its number in the stream sequence. Partitions are filled with a sequence of event data.

public sealed class EventData : IDisposable
Inheritance
EventData
Implements

Constructors

Event​Data()

Initializes a new instance of the EventData class.

Event​Data(​Byte[])

Initializes a new instance of the EventData class that uses the specified byte array as the body.

Event​Data(​IList<​Array​Segment<​Byte>>)

Initializes a new instance of the EventData class that uses the specified list of byte array segments as the body.

Event​Data(​Stream)

Initializes a new instance of the EventData class that uses the argument stream as the body stream.

Event​Data(​Object, ​Xml​Object​Serializer)

Constructor which takes the input content and serializer to create the body stream.

Properties

Enqueued​Time​Utc

Gets or sets the date and time of the sent time in UTC.

Offset

Gets the offset of the data relative to the Event Hub partition stream. The offset is a marker or identifier for an event within the Event Hubs stream. The identifier is unique within a partition of the Event Hubs stream.

Partition​Key

Gets or sets the key that is used to determine to which partition to send event data.

Properties

Gets the user properties of the event data that the user explicitly added during send operations.

Sequence​Number

Gets the logical sequence number of the event within the partition stream of the Event Hub.

Serialized​Size​In​Bytes
System​Properties

Gets or sets the system properties, including the event data.

Methods

Clone()

Makes a deep copy of this event data.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Get​Body​Stream()

Gets or sets the underlying stream to the event data body.

Get​Bytes()

Gets the event data bytes.

Extension Methods

IsDefined(Object)

Represents the event sent and received from an Event Hubs stream. It contains the body of the event, a user-defined property bag, and various metadata describing the event, such as its offset in the partition and its number in the stream sequence. Partitions are filled with a sequence of event data.

IsNull(Object)

Represents the event sent and received from an Event Hubs stream. It contains the body of the event, a user-defined property bag, and various metadata describing the event, such as its offset in the partition and its number in the stream sequence. Partitions are filled with a sequence of event data.

IsPrimitive(Object)

Represents the event sent and received from an Event Hubs stream. It contains the body of the event, a user-defined property bag, and various metadata describing the event, such as its offset in the partition and its number in the stream sequence. Partitions are filled with a sequence of event data.