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
System.String

The path to the Event Hub.

Returns

EventHubClient

The newly created EventHubClient object.

Exceptions

System.ArgumentNullException

Thrown if path is null.

Applies to