語言

BluetoothSocketException 建構函式

定義

多載

名稱 Description
BluetoothSocketException(BluetoothSocketExceptionReason)

建立 BluetoothSocketException 一個錯誤代碼。

BluetoothSocketException(BluetoothSocketExceptionReason, String)

建立 BluetoothSocketException 一個錯誤代碼和自訂錯誤訊息。

BluetoothSocketException(IntPtr, JniHandleOwnership)

BluetoothSocketException(BluetoothSocketExceptionReason)

建立 BluetoothSocketException 一個錯誤代碼。

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=34)]
public BluetoothSocketException(Android.Bluetooth.BluetoothSocketExceptionReason code);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=34)>]
new Android.Bluetooth.BluetoothSocketException : Android.Bluetooth.BluetoothSocketExceptionReason -> Android.Bluetooth.BluetoothSocketException

參數

code
BluetoothSocketExceptionReason

: 錯誤代碼,代表失敗原因。

屬性

備註

建立 BluetoothSocketException 一個錯誤代碼。 根據所提供的,會產生 code 一個通用錯誤訊息。

Java 文件 android.bluetooth.BluetoothSocketException.BluetoothSocketException(int)

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

適用於

BluetoothSocketException(BluetoothSocketExceptionReason, String)

建立 BluetoothSocketException 一個錯誤代碼和自訂錯誤訊息。

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=34)]
public BluetoothSocketException(Android.Bluetooth.BluetoothSocketExceptionReason code, string msg);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=34)>]
new Android.Bluetooth.BluetoothSocketException : Android.Bluetooth.BluetoothSocketExceptionReason * string -> Android.Bluetooth.BluetoothSocketException

參數

code
BluetoothSocketExceptionReason

: 錯誤代碼,代表失敗原因。

msg
String

: 與失敗相關的自訂錯誤訊息。

屬性

備註

建立 BluetoothSocketException 一個錯誤代碼和自訂錯誤訊息。

Java 文件 android.bluetooth.BluetoothSocketException.BluetoothSocketException(int, java.lang.String)

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

適用於

BluetoothSocketException(IntPtr, JniHandleOwnership)

protected BluetoothSocketException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Bluetooth.BluetoothSocketException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Bluetooth.BluetoothSocketException

參數

javaReference
IntPtr

nativeint

適用於