NetTcpBinding::Security Property
.NET Framework (current version)
Gets an object that specifies the type of security used with services configured with this binding.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: property NetTcpSecurity^ Security { NetTcpSecurity^ get(); void set(NetTcpSecurity^ value); }
Property Value
Type: System.ServiceModel::NetTcpSecurity^The NetTcpSecurity that contains the types of security used with this binding. The default mode of security for the NetTCPBinding is Transport.
The NetTcpSecurity provides the types of security and settings available to the NetTcpBinding.
This example shows how to get the Security value.
NetTcpSecurity security = binding.Security;
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Show: