语言

StringIndexOutOfBoundsException 构造函数

定义

重载

名称 说明
StringIndexOutOfBoundsException()

构造一个 StringIndexOutOfBoundsException 没有详细信息消息。

StringIndexOutOfBoundsException(Int32)

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

StringIndexOutOfBoundsException(String)

使用指定的详细信息消息构造 a StringIndexOutOfBoundsException 。

StringIndexOutOfBoundsException(IntPtr, JniHandleOwnership)

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

StringIndexOutOfBoundsException()

构造一个 StringIndexOutOfBoundsException 没有详细信息消息。

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

注解

构造一个 StringIndexOutOfBoundsException 没有详细信息消息。

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

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

适用于

StringIndexOutOfBoundsException(Int32)

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

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

参数

index
Int32

非法索引。

属性

注解

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

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

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

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

适用于

StringIndexOutOfBoundsException(String)

使用指定的详细信息消息构造 a StringIndexOutOfBoundsException 。

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

参数

s
String

详细信息消息。

属性

注解

使用指定的详细信息消息构造 a StringIndexOutOfBoundsException 。

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

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

适用于

StringIndexOutOfBoundsException(IntPtr, JniHandleOwnership)

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

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

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于