NetTcpBinding.Security Property


Gets an object that specifies the type of security used with services configured with this binding.

 property System::ServiceModel::NetTcpSecurity ^ Security { System::ServiceModel::NetTcpSecurity ^ get(); };
public System.ServiceModel.NetTcpSecurity Security { get; }
member this.Security : System.ServiceModel.NetTcpSecurity
Public ReadOnly Property Security As NetTcpSecurity

Property Value

The NetTcpSecurity that contains the types of security used with this binding. The default mode of security for the NetTCPBinding is Transport.


This example shows how to get the Security value.

NetTcpSecurity security = binding.Security;


The NetTcpSecurity provides the types of security and settings available to the NetTcpBinding.

Applies to