NetPeerTcpBinding Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.