Export (0) Print
Expand All

MessagingFactory::Create Method (Uri, MessagingFactorySettings)

Creates a new MessagingFactory object.

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

public:
static MessagingFactory^ Create(
	Uri^ address, 
	MessagingFactorySettings^ factorySettings
)

Parameters

address
Type: System::Uri
The namespace base address.
factorySettings
Type: Microsoft.ServiceBus.Messaging::MessagingFactorySettings
The MessagingFactory settings.

Return Value

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

ExceptionCondition
ArgumentNullException

Thrown when address or factorySettings is null.

ArgumentException

address contains a path appended to the full address of the service namespace.

Community Additions

ADD
Show:
© 2015 Microsoft