语言

AnnotationFormatError 构造函数

定义

重载

名称 说明
AnnotationFormatError(Throwable)

构造具有指定原因和详细信息消息的AnnotationFormatError一个新(cause == null ? null : cause.toString())消息(通常包含其cause类和详细信息消息)。

AnnotationFormatError(String)

使用指定的详细信息消息构造一个新 AnnotationFormatError 消息。

AnnotationFormatError(IntPtr, JniHandleOwnership)

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

AnnotationFormatError(String, Throwable)

使用指定的详细信息消息和原因构造一个新 AnnotationFormatError 项。

AnnotationFormatError(Throwable)

构造具有指定原因和详细信息消息的AnnotationFormatError一个新(cause == null ? null : cause.toString())消息(通常包含其cause类和详细信息消息)。

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public AnnotationFormatError(Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.Lang.Annotation.AnnotationFormatError : Java.Lang.Throwable -> Java.Lang.Annotation.AnnotationFormatError

参数

cause
Throwable

原因(允许使用 A null 值,并指示原因不存在或未知。

属性

注解

构造具有指定原因和详细信息消息的AnnotationFormatError一个新(cause == null ? null : cause.toString())消息(通常包含其cause类和详细信息消息)。

Java文档java.lang.annotation.AnnotationFormatError.AnnotationFormatError(java.lang.Throwable)。

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

适用于

AnnotationFormatError(String)

使用指定的详细信息消息构造一个新 AnnotationFormatError 消息。

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

参数

message
String

详细信息消息。

属性

注解

使用指定的详细信息消息构造一个新 AnnotationFormatError 消息。

Java文档java.lang.annotation.AnnotationFormatError.AnnotationFormatError(java.lang.String)。

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

适用于

AnnotationFormatError(IntPtr, JniHandleOwnership)

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

protected AnnotationFormatError(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.Annotation.AnnotationFormatError : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.Annotation.AnnotationFormatError

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于

AnnotationFormatError(String, Throwable)

使用指定的详细信息消息和原因构造一个新 AnnotationFormatError 项。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public AnnotationFormatError(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Java.Lang.Annotation.AnnotationFormatError : string * Java.Lang.Throwable -> Java.Lang.Annotation.AnnotationFormatError

参数

message
String

详细信息消息

cause
Throwable

原因(允许使用 A null 值,并指示原因不存在或未知。

属性

注解

使用指定的详细信息消息和原因构造一个新 AnnotationFormatError 项。 请注意,与此 cause 错误的详细信息消息 中不 自动合并关联的详细信息消息。

Java文档java.lang.annotation.AnnotationFormatError.AnnotationFormatError(java.lang.String, java.lang.Throwable)。

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

适用于