Socket.Close Method

 
System_CAPS_noteNote

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

Closes the Socket connection and releases all associated resources.

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

NameDescription
System_CAPS_pubmethodClose()

Closes the Socket connection and releases all associated resources.

System_CAPS_pubmethodClose(Int32)

Closes the Socket connection and releases all associated resources with a specified timeout to allow queued data to be sent.

Return to top
Show: