Table of Contents

Class EventHubAttribute

Namespace
Microsoft.Azure.WebJobs
Assembly
Microsoft.Azure.WebJobs.Extensions.EventHubs.dll

Setup an 'output' binding to an EventHub. This can be any output type compatible with an IAsyncCollector.

[AttributeUsage(AttributeTargets.Parameter|AttributeTargets.ReturnValue)]
public sealed class EventHubAttribute : Attribute
Inheritance
EventHubAttribute
Inherited Members

Constructors

EventHubAttribute(string)

Initialize a new instance of the EventHubAttribute

public EventHubAttribute(string eventHubName)

Parameters

eventHubName string

Name of the event hub.

Properties

Connection

Gets or sets the optional connection string name that contains the Event Hub connection string. If missing, tries to use a registered event hub sender.

public string Connection { get; set; }

Property Value

string

EventHubName

The name of the event hub.

public string EventHubName { get; }

Property Value

string