Partager via


BluetoothSocketException Constructors

Definition

Overloads

BluetoothSocketException(BluetoothSocketExceptionReason)

Create a BluetoothSocketException with an error code.

BluetoothSocketException(BluetoothSocketExceptionReason, String)

Create a BluetoothSocketException with an error code and custom error message.

BluetoothSocketException(IntPtr, JniHandleOwnership)

BluetoothSocketException(BluetoothSocketExceptionReason)

Create a BluetoothSocketException with an error code.

[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

Parameters

code
BluetoothSocketExceptionReason

: error code representing the reason for failure.

Attributes

Remarks

Create a BluetoothSocketException with an error code. A generic error message is generated based on the code provided.

Java documentation for android.bluetooth.BluetoothSocketException.BluetoothSocketException(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BluetoothSocketException(BluetoothSocketExceptionReason, String)

Create a BluetoothSocketException with an error code and custom error message.

[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

Parameters

code
BluetoothSocketExceptionReason

: error code representing the reason for failure.

msg
String

: Custom error message associated to the failure.

Attributes

Remarks

Create a BluetoothSocketException with an error code and custom error message.

Java documentation for android.bluetooth.BluetoothSocketException.BluetoothSocketException(int, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BluetoothSocketException(IntPtr, JniHandleOwnership)

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

Parameters

javaReference
IntPtr

nativeint

Applies to