1 out of 1 rated this helpful - Rate this topic

TcpTransportBindingElement Class

Represents the binding element for the TCP transport.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
public class TcpTransportBindingElement : ConnectionOrientedTransportBindingElement

This transport uses URIs of the form "net.tcp://hostname:port/path". Other URI components are optional.

The TcpTransportBindingElement class is the starting point for creating a custom binding that implements the TCP transport protocol. This transport is optimized for WCF-to-WCF communication.

The WCF service model uses this class to create factory objects that implement the IChannelFactory and IChannelListener interfaces. These factory objects, in turn, create and accept the channels that transmit SOAP messages using the TCP protocol.

You configure the factories that this class creates by setting its properties, such as PortSharingEnabled and LeaseTimeout.

You can also set properties on the base class ConnectionOrientedTransportBindingElement, such as MaxBufferSize, TransferMode, and ConnectionBufferSize. For a complete list of properties, see ConnectionOrientedTransportBindingElement.

Finally, you can set properties on the base class TransportBindingElement, such as ManualAddressing and MaxBufferPoolSize. For a complete list of properties, see TransportBindingElement.

The following example shows how to use this class.

TcpTransportBindingElement bElement =
    new TcpTransportBindingElement();

TcpConnectionPoolSettings connectionPoolSettings =
    bElement.ConnectionPoolSettings;
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.