BluetoothSocketException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| BluetoothSocketException(BluetoothSocketExceptionReason) |
使用错误代码创建一 |
| BluetoothSocketException(BluetoothSocketExceptionReason, String) |
|
| BluetoothSocketException(IntPtr, JniHandleOwnership) |
创建表示现有Java对象的托管实例。 |
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
参数
:表示失败原因的错误代码。
- 属性
注解
使用错误代码创建一 BluetoothSocketException 个。 基于 code 提供的一般错误消息生成。
Java文档android.bluetooth.BluetoothSocketException.BluetoothSocketException(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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
参数
:表示失败原因的错误代码。
- msg
- String
:与失败关联的自定义错误消息。
- 属性
注解
BluetoothSocketException创建错误代码和自定义错误消息。
Java文档android.bluetooth.BluetoothSocketException.BluetoothSocketException(int, java.lang.String)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
BluetoothSocketException(IntPtr, JniHandleOwnership)
创建表示现有Java对象的托管实例。
protected BluetoothSocketException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Bluetooth.BluetoothSocketException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Bluetooth.BluetoothSocketException
参数
- javaReference
-
IntPtr
nativeint
对Java对象的 JNI 引用。
- transfer
- JniHandleOwnership
指定 JNI 引用的所有权是否传输到此实例。
注解
运行时调用此构造函数来创建现有Java对象的托管表示形式。