EventData Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Initializes a new instance of the EventData class.
public EventData ();
Public Sub New ()
Applies to
EventData(AmqpAnnotatedMessage)
- 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
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
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
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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기