NetTcpBinding Constructor (SecurityMode)

 

Initializes a new instance of the NetTcpBinding class with the type of security used specified.

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

public NetTcpBinding(
	SecurityMode securityMode
)

Parameters

securityMode
Type: System.ServiceModel.SecurityMode

The SecurityMode value that specifies the type of security used with the binding.

Use this constructor when you want to configure the security. If you want to configure security and enable reliable sessions, use NetTcpBinding.NetTcpBinding(SecurityMode, Boolean).

This example shows how to create a NetTcpBinding using the security mode parameter.

NetTcpBinding bSecurity = new NetTcpBinding(SecurityMode.Transport);

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