MessagingFactory.Create Method (Uri, ServiceBusMessagingFactorySettings)

Creates a new MessagingFactory object.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)

public static MessagingFactory Create(
	Uri address,
	ServiceBusMessagingFactorySettings factorySettings
)

Parameters

address
Type: System.Uri
The base address of the service namespace.
factorySettings
Type: Microsoft.ServiceBus.Messaging.ServiceBusMessagingFactorySettings
The MessagingFactory settings.

Return Value

Type: Microsoft.ServiceBus.Messaging.MessagingFactory
The newly created MessagingFactory object.

ExceptionCondition
ArgumentNullException

address or factorySettings is null.

Show: