Export (0) Print
Expand All

TcpClient Methods

The methods of the TcpClient class are listed here. For a complete list of TcpClient class members, see the TcpClient Members topic.

Public Methods

public methodClose

Supported by the .NET Compact Framework.

Closes the TCP connection and releases all resources associated with the TcpClient.
public methodConnect

Supported by the .NET Compact Framework.

Overloaded. Connects the client to a remote TCP host using the specified host name and port number.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetStream

Supported by the .NET Compact Framework.

Returns the NetworkStream used to send and receive data.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodDispose

Supported by the .NET Compact Framework.

Releases the unmanaged resources used by the TcpClient and optionally releases the managed resources.
protected methodFinalize

Supported by the .NET Compact Framework.

Overridden. Frees resources used by the TcpClient class.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

TcpClient Class | System.Net.Sockets Namespace

Show:
© 2014 Microsoft