语言

OperationCanceledException 构造函数

定义

重载

名称 说明
OperationCanceledException()

初始化 OperationCanceledException 类的新实例。

OperationCanceledException(String)

初始化 OperationCanceledException 类的新实例。

OperationCanceledException(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

OperationCanceledException()

初始化 OperationCanceledException 类的新实例。

[Android.Runtime.Register(".ctor", "()V", "")]
public OperationCanceledException();
属性

注解

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

Java文档android.os.OperationCanceledException.OperationCanceledException()。

适用于

OperationCanceledException(String)

初始化 OperationCanceledException 类的新实例。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public OperationCanceledException(string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.OS.OperationCanceledException : string -> Android.OS.OperationCanceledException

参数

message
String

异常消息。

属性

注解

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

Java文档android.os.OperationCanceledException.OperationCanceledException(java.lang.String)。

适用于

OperationCanceledException(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

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

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于