語言

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。

關閉 will em not/em> 關閉任何BluetoothSocket收到的#accept()。<><BluetoothServerSocket

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於