SALES: 1-800-867-1380
Create Method (Uri, MessagingFactorySettings)

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.

Exception Condition
ArgumentNullException

Thrown when address or factorySettings is null.

ArgumentException

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

Return to top
Show:
© 2016 Microsoft