TcpTransportBindingElement Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the binding element for the TCP transport.
public ref class TcpTransportBindingElement : System::ServiceModel::Channels::ConnectionOrientedTransportBindingElement
public class TcpTransportBindingElement : System.ServiceModel.Channels.ConnectionOrientedTransportBindingElement
type TcpTransportBindingElement = class
inherit ConnectionOrientedTransportBindingElement
Public Class TcpTransportBindingElement
Inherits ConnectionOrientedTransportBindingElement
- Inheritance
-
TcpTransportBindingElement
The following example shows how to use this class.
TcpTransportBindingElement bElement =
new TcpTransportBindingElement();
TcpConnectionPoolSettings connectionPoolSettings =
bElement.ConnectionPoolSettings;
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 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.
Tcp |
Initializes a new instance of the TcpTransportBindingElement class. |
Tcp |
Initializes a new instance of the TcpTransportBindingElement class. |
Channel |
Gets or sets a TimeSpan that determines the maximum time a channel can be in the initialization status before being disconnected. (Inherited from ConnectionOrientedTransportBindingElement) |
Connection |
Gets 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) |
Connection |
Gets a collection of connection pool settings. |
Extended |
Gets or sets the current extended protection policy. |
Host |
Gets or sets a value that indicates whether the hostname is used to reach the service when matching on the URI. (Inherited from ConnectionOrientedTransportBindingElement) |
Listen |
Gets or sets the maximum number of queued connection requests that can be pending. |
Manual |
Gets or sets a value that indicates whether manual addressing of the message is required. (Inherited from TransportBindingElement) |
Max |
Gets or sets the maximum size, in bytes, of any buffer pools used by the transport. (Inherited from TransportBindingElement) |
Max |
Gets or sets the maximum size of the buffer to use. For streamed messages, this value should be at least the maximum possible size of the message headers, which are read in buffered mode. (Inherited from ConnectionOrientedTransportBindingElement) |
Max |
Gets or sets the maximum interval of time that a chunk of a message or a full message can remain buffered in memory before being sent out. (Inherited from ConnectionOrientedTransportBindingElement) |
Max |
Gets or sets the maximum number of channels a service can have waiting on a listener for processing incoming connections to the service. (Inherited from ConnectionOrientedTransportBindingElement) |
Max |
Gets or sets the maximum number of connections awaiting dispatch on the service. (Inherited from ConnectionOrientedTransportBindingElement) |
Max |
Gets or sets the maximum allowable message size, in bytes, that can be received. (Inherited from TransportBindingElement) |
Port |
Gets or sets a value that indicates whether TCP port sharing is enabled for this connection. |
Scheme |
Returns the URI scheme for the transport. |
Teredo |
Gets or sets a value that indicates whether Teredo (a technology for addressing clients that are behind firewalls) is enabled. |
Transfer |
Gets or sets a value that indicates whether the messages are buffered or streamed with the connection-oriented transport. (Inherited from ConnectionOrientedTransportBindingElement) |
Build |
Creates a channel factory that can be used to create a channel. |
Build |
Creates a channel listener of the specified type. |
Build |
Initializes a channel listener to accept channels of a specified type from the binding context. (Inherited from BindingElement) |
Can |
Determines whether a channel factory of the specified type can be built. (Inherited from ConnectionOrientedTransportBindingElement) |
Can |
Determines whether a channel listener of the specified type can be built. (Inherited from ConnectionOrientedTransportBindingElement) |
Clone() |
Creates a copy of the current binding element. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets a specified object from the BindingContext. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Should |
Returns an indication that the extended protection policy is not XAML serializable. |
Should |
Indicates whether the TCP transport binding element should serialize listen backlog. |
Should |
Indicates whether the connection oriented transport binding element should serialize maximum pending accepts. (Inherited from ConnectionOrientedTransportBindingElement) |
Should |
Indicates whether the connection oriented transport binding element should serialize maximum pending connections. (Inherited from ConnectionOrientedTransportBindingElement) |
To |
Returns a string that represents the current object. (Inherited from Object) |
IPolicy |
Exports a custom policy assertion about bindings. (Inherited from ConnectionOrientedTransportBindingElement) |
IWsdl |
Writes custom Web Services Description Language (WSDL) elements into the generated WSDL for a contract. (Inherited from ConnectionOrientedTransportBindingElement) |
IWsdl |
Writes custom Web Services Description Language (WSDL) elements into the generated WSDL for an endpoint. (Inherited from ConnectionOrientedTransportBindingElement) |
Produkt | Versjoner |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: