EventHubsModelFactory.EventData Method
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(BinaryData, IDictionary<String,Object>, IReadOnlyDictionary<String,Object>, String, Int64, Int64, DateTimeOffset)
- Source:
- EventHubsModelFactory.cs
Initializes a new instance of the EventData(BinaryData, IDictionary<String,Object>, IReadOnlyDictionary<String,Object>, String, Int64, Int64, DateTimeOffset) class.
public static Azure.Messaging.EventHubs.EventData EventData (BinaryData eventBody, System.Collections.Generic.IDictionary<string,object> properties = default, System.Collections.Generic.IReadOnlyDictionary<string,object> systemProperties = default, string partitionKey = default, long sequenceNumber = -9223372036854775808, long offset = -9223372036854775808, DateTimeOffset enqueuedTime = default);
static member EventData : BinaryData * System.Collections.Generic.IDictionary<string, obj> * System.Collections.Generic.IReadOnlyDictionary<string, obj> * string * int64 * int64 * DateTimeOffset -> Azure.Messaging.EventHubs.EventData
Public Shared Function EventData (eventBody As BinaryData, Optional properties As IDictionary(Of String, Object) = Nothing, Optional systemProperties As IReadOnlyDictionary(Of String, Object) = Nothing, Optional partitionKey As String = Nothing, Optional sequenceNumber As Long = -9223372036854775808, Optional offset As Long = -9223372036854775808, Optional enqueuedTime As DateTimeOffset = Nothing) As EventData
Parameters
- eventBody
- BinaryData
The data to use as the body of the event.
- properties
- IDictionary<String,Object>
The set of free-form event properties to send with the event.
- systemProperties
- IReadOnlyDictionary<String,Object>
The set of system properties that accompany events read from the Event Hubs service.
- partitionKey
- String
The partition hashing key associated with the event when it was published.
- sequenceNumber
- Int64
The sequence number assigned to the event when it was enqueued in the associated Event Hub partition.
- offset
- Int64
The offset of the event when it was received from the associated Event Hub partition.
- enqueuedTime
- DateTimeOffset
The date and time, in UTC, of when the event was enqueued in the Event Hub partition.
Returns
Applies to
EventData(BinaryData, IDictionary<String,Object>, IReadOnlyDictionary<String,Object>, String, Int64, String, DateTimeOffset)
- Source:
- EventHubsModelFactory.cs
Initializes a new instance of the EventData(BinaryData, IDictionary<String,Object>, IReadOnlyDictionary<String,Object>, String, Int64, String, DateTimeOffset) class.
public static Azure.Messaging.EventHubs.EventData EventData (BinaryData eventBody, System.Collections.Generic.IDictionary<string,object> properties = default, System.Collections.Generic.IReadOnlyDictionary<string,object> systemProperties = default, string partitionKey = default, long sequenceNumber = -9223372036854775808, string offset = default, DateTimeOffset enqueuedTime = default);
static member EventData : BinaryData * System.Collections.Generic.IDictionary<string, obj> * System.Collections.Generic.IReadOnlyDictionary<string, obj> * string * int64 * string * DateTimeOffset -> Azure.Messaging.EventHubs.EventData
Public Shared Function EventData (eventBody As BinaryData, Optional properties As IDictionary(Of String, Object) = Nothing, Optional systemProperties As IReadOnlyDictionary(Of String, Object) = Nothing, Optional partitionKey As String = Nothing, Optional sequenceNumber As Long = -9223372036854775808, Optional offset As String = Nothing, Optional enqueuedTime As DateTimeOffset = Nothing) As EventData
Parameters
- eventBody
- BinaryData
The data to use as the body of the event.
- properties
- IDictionary<String,Object>
The set of free-form event properties to send with the event.
- systemProperties
- IReadOnlyDictionary<String,Object>
The set of system properties that accompany events read from the Event Hubs service.
- partitionKey
- String
The partition hashing key associated with the event when it was published.
- sequenceNumber
- Int64
The sequence number assigned to the event when it was enqueued in the associated Event Hub partition.
- offset
- String
The offset of the event when it was received from the associated Event Hub partition.
- enqueuedTime
- DateTimeOffset
The date and time, in UTC, of when the event was enqueued in the Event Hub partition.
Returns
Applies to
Azure SDK for .NET