Udostępnij za pośrednictwem


EventHubClient.Create(String) Method

Definition

Creates a new instance of the EventHubClient instance, using a connection string from the application configuration settings.

public static Microsoft.ServiceBus.Messaging.EventHubClient Create (string path);
static member Create : string -> Microsoft.ServiceBus.Messaging.EventHubClient
Public Shared Function Create (path As String) As EventHubClient

Parameters

path
String

The path to the Event Hub.

Returns

The newly created Event Hub client object.

Remarks

This method will attempt to retrieve the connection string information from either app.config, or web.config files. User must supply the connection string using the "AppSettings" section of the configuration. The format of the section is as follows:

Applies to