MessagingFactory.Create Method (String, ServiceBusMessagingFactorySettings)

Creates a new MessagingFactory object.

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

Syntax

'Declaration
Public Shared Function Create ( _
    address As String, _
    factorySettings As ServiceBusMessagingFactorySettings _
) As MessagingFactory
'Usage
Dim address As String
Dim factorySettings As ServiceBusMessagingFactorySettings
Dim returnValue As MessagingFactory

returnValue = MessagingFactory.Create(address, _
    factorySettings)
public static MessagingFactory Create(
    string address,
    ServiceBusMessagingFactorySettings factorySettings
)
public:
static MessagingFactory^ Create(
    String^ address, 
    ServiceBusMessagingFactorySettings^ factorySettings
)
static member Create : 
        address:string * 
        factorySettings:ServiceBusMessagingFactorySettings -> MessagingFactory 
public static function Create(
    address : String, 
    factorySettings : ServiceBusMessagingFactorySettings
) : MessagingFactory

Parameters

  • address
    Type: System.String
    The base address of the service namespace.

Return Value

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

Exceptions

Exception Condition
UriFormatException

address is empty or null.

ArgumentNullException

factorySettings is null.

See Also

Reference

MessagingFactory Class

Create Overload

Microsoft.ServiceBus.Messaging Namespace