This documentation is archived and is not being maintained.

NetTcpSecurity.Transport Property

Gets the type of message-level security requirements for an endpoint configured with a NetTcpBinding.

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

public TcpTransportSecurity Transport { get; }

Property Value

Type: System.ServiceModel.TcpTransportSecurity
The TcpTransportSecurity that indicates the type of transport-level security requirements for an endpoint.

Use Transport security for integrity and confidentiality of the SOAP message and for mutual authentication. If this security mode is selected on a binding, the channel stack is configured using a secure transport and the SOAP messages are secured using transport security such as HTTPS or SSL over TCP.

TcpTransportSecurity tsTcp = security.Transport;
Console.WriteLine("\t\tClient Credential Type: {0}", tsTcp.ClientCredentialType);
Console.WriteLine("\t\tProtectionLevel: {0}", tsTcp.ProtectionLevel);

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0