Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TcpTransportBindingElement Class

Represents the binding element for the Transmission Control Protocol (TCP) transport.

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

public class TcpTransportBindingElement : ConnectionOrientedTransportBindingElement

The TcpTransportBindingElement type exposes the following members.

  NameDescription
Public methodTcpTransportBindingElement()Initializes a new instance of the TcpTransportBindingElement class.
Protected methodTcpTransportBindingElement(TcpTransportBindingElement)Initializes a new instance of the TcpTransportBindingElement class from an existing instance.
Top

  NameDescription
Public propertyConnectionBufferSizeGets or sets the size of the buffer used to transmit a chunk of the serialized message on the wire from the client or service. (Inherited from ConnectionOrientedTransportBindingElement.)
Public propertyConnectionPoolSettingsGets a collection of connection pool settings.
Public propertyManualAddressingGets or sets a value that indicates whether manual addressing of the message is required. (Inherited from TransportBindingElement.)
Public propertyMaxBufferSizeGets or sets the maximum size of the buffer to use. (Inherited from ConnectionOrientedTransportBindingElement.)
Public propertyMaxReceivedMessageSizeGets and sets the maximum allowable message size that can be received. (Inherited from TransportBindingElement.)
Public propertySchemeReturns the URI scheme for the transport. (Overrides TransportBindingElement.Scheme.)
Top

  NameDescription
Public methodBuildChannelFactory<TChannel>Creates a channel factory that can be used to create a channel. (Overrides BindingElement.BuildChannelFactory<TChannel>(BindingContext).)
Public methodCanBuildChannelFactory<TChannel>Determines whether a channel factory of the specified type can be built. (Inherited from ConnectionOrientedTransportBindingElement.)
Public methodCloneCreates a copy of the current binding element. (Overrides BindingElement.Clone().)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetProperty<T>Gets a property from the specified BindingContext. (Inherited from TransportBindingElement.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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 communication with Windows Communication Foundation (WCF) services. The Silverlight 5 programming model uses this class to create factory objects that implement the IChannelFactory interface. These factory objects, in turn, create the channels that transmit SOAP messages using the TCP protocol. You configure the factories that this class creates by setting its properties, such as ConnectionPoolSettings and LeaseTimeout.

You can also set properties on the base class ConnectionOrientedTransportBindingElement, such as MaxBufferSize, and ConnectionBufferSize.

Finally, you can set properties on the base class TransportBindingElement, such as ManualAddressing and MaxReceivedMessageSize.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft