Redigera

Dela via


NetPeerTcpBinding Constructors

Definition

Initializes a new instance of the NetPeerTcpBinding class.

Overloads

NetPeerTcpBinding()

Initializes a new default instance of the NetPeerTcpBinding class.

NetPeerTcpBinding(String)

Initializes a new instance of the NetPeerTcpBinding class with a specified configuration name.

NetPeerTcpBinding()

Initializes a new default instance of the NetPeerTcpBinding class.

public:
 NetPeerTcpBinding();
public NetPeerTcpBinding ();
Public Sub New ()

Applies to

NetPeerTcpBinding(String)

Initializes a new instance of the NetPeerTcpBinding class with a specified configuration name.

public:
 NetPeerTcpBinding(System::String ^ configurationName);
public NetPeerTcpBinding (string configurationName);
new System.ServiceModel.NetPeerTcpBinding : string -> System.ServiceModel.NetPeerTcpBinding
Public Sub New (configurationName As String)

Parameters

configurationName
String

The value of the configurationName attribute that identifies the binding element whose settings are used to initialize the binding.

Exceptions

The configuration is invalid.

Remarks

This constructor creates a new NetPeerTcpBinding with the supplied name. If a configuration for that name already exists, the settings in the configuration file that contains that name are used. If the name does not already exist, the default configuration settings are used.

Applies to