AssertionFailedError 构造函数

定义

重载

AssertionFailedError()

更典型的调用 #AssertionFailedError(String)

AssertionFailedError(String)

更典型的调用 #AssertionFailedError(String)

AssertionFailedError(IntPtr, JniHandleOwnership)

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

AssertionFailedError()

更典型的调用 #AssertionFailedError(String)

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

注解

更典型的调用 #AssertionFailedError(String)

适用于 . 的 android.test.AssertionFailedError.AssertionFailedError()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

AssertionFailedError(String)

更典型的调用 #AssertionFailedError(String)

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

参数

errorMessage
String
属性

注解

适用于 . 的 android.test.AssertionFailedError.AssertionFailedError()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

AssertionFailedError(IntPtr, JniHandleOwnership)

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

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

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于