NetTcpBinding Constructor ()


Initializes a new instance of the NetTcpBinding class.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public NetTcpBinding()

By default, transport security is used to secure communication (that is, the value of SecurityMode is set to Transport) and reliable sessions are disabled (that is Enabled is false).

This example shows how to create a NetTcpBinding, setting the security mode and transport credential type.

NetTcpBinding binding = new NetTcpBinding();
binding.Security.Mode = SecurityMode.Transport;
binding.Security.Transport.ClientCredentialType = TcpClientCredentialType.Certificate;

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top