Java.Net.Socket.Close Method
Closes the socket.

Syntax

[Android.Runtime.Register("close", "()V", "GetCloseHandler")]
public virtual void Close ()

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs while closing the socket.

Remarks

Closes the socket. It is not possible to reconnect or rebind to this socket thereafter which means a new socket instance has to be created.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1