다음을 통해 공유


PartitionEvent.Data Property

Definition

An event that was read from the associated Partition.

public Azure.Messaging.EventHubs.EventData Data { get; }
member this.Data : Azure.Messaging.EventHubs.EventData
Public ReadOnly Property Data As EventData

Property Value

The EventData read from the Event Hub partition, if data was available. If a maximum wait time was specified when reading events and no event was available in that time period, null.

Remarks

Ownership of this data, including the memory that holds its EventBody, is assumed to transfer to consumers of the PartitionEvent. It may be considered immutable and is safe to access so long as the reference is held.

Applies to