Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.27 KB

functions-bindings-service-bus-output-dotnet-isolated-types.md

File metadata and controls

26 lines (20 loc) · 1.27 KB
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 message, the Service Bus output binding can bind to the following types:

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

When you want the function to write multiple messages, the Service Bus output binding can bind to the following types:

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

For other output scenarios, create and use a ServiceBusClient with other types from Azure.Messaging.ServiceBus directly. See Register Azure clients for an example of using dependency injection to create a client type from the Azure SDK.