EventHubClient.Create(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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: