Skip to content

Files

Latest commit

 

History

History
25 lines (19 loc) · 968 Bytes

functions-bindings-event-hubs-output-dotnet-isolated-types.md

File metadata and controls

25 lines (19 loc) · 968 Bytes
author ms.service ms.topic ms.date ms.author
mattchenderson
azure-functions
include
07/10/2023
mahender

When you want the function to write a single event, the Event Hubs output binding can bind to the following types:

Type Description
string The event as a string. Use when the event is simple text.
byte[] The bytes of the event.
JSON serializable types An object representing the event. Functions tries to serialize a plain-old CLR object (POCO) type into JSON data.

When you want the function to write multiple events, the Event Hubs output binding can bind to the following types:

Type Description
T[] where T is one of the single event types An array containing multiple events. Each entry represents one event.

For other output scenarios, create and use types from Microsoft.Azure.EventHubs directly.