TcpChannel Constructor ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the TcpChannel class, activating only a client channel, and not a server channel.

Namespace:   System.Runtime.Remoting.Channels.Tcp
Assembly:  System.Runtime.Remoting (in System.Runtime.Remoting.dll)

public TcpChannel()

The default constructor initializes all fields to their default values. If the default constructor is used, the channel functions only as a client channel, and does not listen on any ports.

The following code example shows how to use this constructor.

// Create the channel.
TcpChannel clientChannel = new TcpChannel();

.NET Framework
Available since 1.1
Return to top