SALES: 1-800-867-1380

NetTcpRelayBinding Constructor (String)

Initializes a new instance of the NetTcpRelayBinding class with a specified XML configuration.

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

public NetTcpRelayBinding(
	string configurationName


Type: System.String
The configuration to use.

This constructor takes as a parameter one of the configurations defined in your App.config file. For more information about configuring an Windows Azure Service Bus application, see Configuring an AppFabric Service Bus Application.

For more information about building an Windows Azure Service Bus application, see Building a Service for the AppFabric Service Bus, and Building an AppFabric Service Bus Client Application.

This example shows how to create a NetTcpRelayBinding using the configurationName parameter.

NetTcpRelayBinding myTcpRelayBinding = new NetTcpRelayBinding("MyConfiguration");
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft