EventData Constructors

Definition

Overloads

EventData()

Initializes a new instance of the EventData class.

EventData(AmqpAnnotatedMessage)

Initializes a new instance of the EventData class.

EventData(BinaryData)

Initializes a new instance of the EventData class.

EventData(ReadOnlyMemory<Byte>)

Initializes a new instance of the EventData class.

EventData(String)

Initializes a new instance of the EventData class.

EventData()

Source:
EventData.cs
Source:
EventData.cs

Initializes a new instance of the EventData class.

public EventData ();
Public Sub New ()

Applies to

EventData(AmqpAnnotatedMessage)

Source:
EventData.cs
Source:
EventData.cs

Initializes a new instance of the EventData class.

public EventData (Azure.Core.Amqp.AmqpAnnotatedMessage amqpMessage);
new Azure.Messaging.EventHubs.EventData : Azure.Core.Amqp.AmqpAnnotatedMessage -> Azure.Messaging.EventHubs.EventData
Public Sub New (amqpMessage As AmqpAnnotatedMessage)

Parameters

amqpMessage
AmqpAnnotatedMessage

The AmqpAnnotatedMessage on which to base the event.

Applies to

EventData(BinaryData)

Source:
EventData.cs
Source:
EventData.cs

Initializes a new instance of the EventData class.

public EventData (BinaryData eventBody);
new Azure.Messaging.EventHubs.EventData : BinaryData -> Azure.Messaging.EventHubs.EventData
Public Sub New (eventBody As BinaryData)

Parameters

eventBody
BinaryData

The raw data as binary to use as the body of the event.

Applies to

EventData(ReadOnlyMemory<Byte>)

Source:
EventData.cs
Source:
EventData.cs

Initializes a new instance of the EventData class.

public EventData (ReadOnlyMemory<byte> eventBody);
new Azure.Messaging.EventHubs.EventData : ReadOnlyMemory<byte> -> Azure.Messaging.EventHubs.EventData
Public Sub New (eventBody As ReadOnlyMemory(Of Byte))

Parameters

eventBody
ReadOnlyMemory<Byte>

The raw data to use as the body of the event.

Applies to

EventData(String)

Source:
EventData.cs
Source:
EventData.cs

Initializes a new instance of the EventData class.

public EventData (string eventBody);
new Azure.Messaging.EventHubs.EventData : string -> Azure.Messaging.EventHubs.EventData
Public Sub New (eventBody As String)

Parameters

eventBody
String

The data to use as the body of the event. This will be represented as a set UTF-8 encoded bytes.

Applies to