Android.Bluetooth.BluetoothSocket.Close Method
Closes the object and release any system resources it holds.

Syntax

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

Exceptions

TypeReason
Java.IO.IOException

Remarks

Closes the object and release any system resources it holds.

Although only the first call has any effect, it is safe to call close multiple times on the same object. This is more lenient than the overridden AutoCloseable.close(), which may be called at most once.

[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