Share via


MessagingFactory.CreateEventHubClient(String) Method

Definition

Creates a new EventHubClient object using the specified path.

public Microsoft.ServiceBus.Messaging.EventHubClient CreateEventHubClient (string path);
member this.CreateEventHubClient : string -> Microsoft.ServiceBus.Messaging.EventHubClient
Public Function CreateEventHubClient (path As String) As EventHubClient

Parameters

path
String

The path to the Event Hub.

Returns

The newly created EventHubClient object.

Exceptions

Thrown if path is null.

Applies to