Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
WebHttpRelayBinding Constructor (String)

WebHttpRelayBinding Constructor (String)


Initializes a new instance of the WebHttpRelayBinding class using the specified configuration name.

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

public WebHttpRelayBinding(
	string configurationName


Type: System.String

The configuration to use.

The binding can be set up administratively in a .config file. To use the constructor, refer to the binding name set in the configuration.

WebHttpRelayBinding will use the default configuration in your App.config file. Therefore, you should use WebHttpRelayBinding only when you have multiple configurations defined and you wish to use one that is not defined as the default.

Bindings are generally initialized in the beginning of an application, and then used as part of the channel creation to connect to the Service Bus. Values on the binding are set either in the App.config file, programmatically, or else a combination of the two. Binding constructors are used by both host (listener) and client (receiver) applications. For more information, see and .

Return to top
© 2015 Microsoft