Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.25 KB

File metadata and controls

26 lines (20 loc) · 1.25 KB
author mattchenderson
ms.service azure-functions
ms.topic include
ms.date 07/10/2023
ms.author mahender

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

Type Description
string The event as a string.
byte[] The bytes of the event message.
JSON serializable types An object representing a JSON 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 Grid 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 an EventGridPublisherClient with other types from Azure.Messaging.EventGrid directly. See Register Azure clients for an example of using dependency injection to create a client type from the Azure SDK.