BluetoothServerSocket.Close 方法

定义

立即关闭此套接字并释放所有关联的资源。

[Android.Runtime.Register("close", "()V", "")]
public void Close();
[<Android.Runtime.Register("close", "()V", "")>]
abstract member Close : unit -> unit
override this.Close : unit -> unit

实现

属性

例外

注解

立即关闭此套接字并释放所有关联的资源。

导致其他线程对此套接字的阻止调用立即引发 IOException。

BluetoothServerSocket关闭将<不<>/em> 关闭从中接收的任何BluetoothSocket消息#accept()

Java文档android.bluetooth.BluetoothServerSocket.close()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于