Android.Bluetooth.BluetoothServerSocket.Close Method
Immediately close this socket, and release all associated resources.

Syntax

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

Exceptions

TypeReason
Java.IO.IOException

Remarks

Immediately close this socket, and release all associated resources.

Causes blocked calls on this socket in other threads to immediately throw an IOException.

Closing the Android.Bluetooth.BluetoothServerSocket will not close any Android.Bluetooth.BluetoothSocket received from BluetoothServerSocket.Accept.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5