Share via


Socket.Close Method

Closes the current socket connection and releases all resources associated with that connection.

Namespace: System.Net.Sockets
Assembly: System (in system.dll)

Syntax

public void Close ()

Remarks

The Close method closes the remote host connection and releases all managed and unmanaged resources associated with the socket that is represented by the current Socket object.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Socket Class
Socket Members
System.Net.Sockets Namespace