语言

IndexOutOfBoundsException 构造函数

定义

重载

名称 说明
IndexOutOfBoundsException()

构造 IndexOutOfBoundsException 无详细信息消息。

IndexOutOfBoundsException(Int32)

使用指示非法索引的参数构造一个新 IndexOutOfBoundsException 类。

IndexOutOfBoundsException(Int64)

使用指示非法索引的参数构造一个新 IndexOutOfBoundsException 类。

IndexOutOfBoundsException(String)

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

IndexOutOfBoundsException(IntPtr, JniHandleOwnership)

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

IndexOutOfBoundsException()

构造 IndexOutOfBoundsException 无详细信息消息。

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

注解

构造 IndexOutOfBoundsException 无详细信息消息。

适用于 . 的 java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException()Java 文档

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

适用于

IndexOutOfBoundsException(Int32)

使用指示非法索引的参数构造一个新 IndexOutOfBoundsException 类。

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=33)]
public IndexOutOfBoundsException(int index);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=33)>]
new Java.Lang.IndexOutOfBoundsException : int -> Java.Lang.IndexOutOfBoundsException

参数

index
Int32

非法索引。

属性

注解

使用指示非法索引的参数构造一个新 IndexOutOfBoundsException 类。

该索引包含在此异常的详细信息消息中。 未指定详细信息消息的确切呈现格式。

已在 9 中添加。

适用于 . 的 java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException(int)Java 文档

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

适用于

IndexOutOfBoundsException(Int64)

使用指示非法索引的参数构造一个新 IndexOutOfBoundsException 类。

[Android.Runtime.Register(".ctor", "(J)V", "", ApiSince=34)]
public IndexOutOfBoundsException(long index);
[<Android.Runtime.Register(".ctor", "(J)V", "", ApiSince=34)>]
new Java.Lang.IndexOutOfBoundsException : int64 -> Java.Lang.IndexOutOfBoundsException

参数

index
Int64

非法索引。

属性

注解

使用指示非法索引的参数构造一个新 IndexOutOfBoundsException 类。

该索引包含在此异常的详细信息消息中。 未指定详细信息消息的确切呈现格式。

已在 16 中添加。

适用于 . 的 java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException(long)Java 文档

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

适用于

IndexOutOfBoundsException(String)

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

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

参数

s
String

详细信息消息

属性

注解

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

适用于 . 的 java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException(java.lang.String)Java 文档

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

适用于

IndexOutOfBoundsException(IntPtr, JniHandleOwnership)

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

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

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于