StringPrepParseException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| StringPrepParseException(IntPtr, JniHandleOwnership) | |
| StringPrepParseException(String, StringPrepParseExceptionError) |
使用给定的消息和错误代码构造 ParseException 对象 |
| StringPrepParseException(String, StringPrepParseExceptionError, String, Int32) |
使用给定的消息和错误代码构造 ParseException 对象 |
| StringPrepParseException(String, StringPrepParseExceptionError, String, Int32, Int32) |
使用给定的消息和错误代码构造 ParseException 对象 |
StringPrepParseException(IntPtr, JniHandleOwnership)
protected StringPrepParseException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Icu.Text.StringPrepParseException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Icu.Text.StringPrepParseException
参数
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
StringPrepParseException(String, StringPrepParseExceptionError)
使用给定的消息和错误代码构造 ParseException 对象
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=24)]
public StringPrepParseException(string? message, Android.Icu.Text.StringPrepParseExceptionError error);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=24)>]
new Android.Icu.Text.StringPrepParseException : string * Android.Icu.Text.StringPrepParseExceptionError -> Android.Icu.Text.StringPrepParseException
参数
- message
- String
描述发生的错误的类型的字符串
发生的错误
- 属性
注解
使用给定的消息和错误代码构造 ParseException 对象
Java文档android.icu.text.StringPrepParseException.StringPrepParseException(java.lang.String, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
StringPrepParseException(String, StringPrepParseExceptionError, String, Int32)
使用给定的消息和错误代码构造 ParseException 对象
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;I)V", "", ApiSince=24)]
public StringPrepParseException(string? message, Android.Icu.Text.StringPrepParseExceptionError error, string? rules, int pos);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;I)V", "", ApiSince=24)>]
new Android.Icu.Text.StringPrepParseException : string * Android.Icu.Text.StringPrepParseExceptionError * string * int -> Android.Icu.Text.StringPrepParseException
参数
- message
- String
描述发生的错误的类型的字符串
发生的错误
- rules
- String
输入规则字符串
- pos
- Int32
规则字符串中的错误位置
- 属性
注解
使用给定的消息和错误代码构造 ParseException 对象
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
StringPrepParseException(String, StringPrepParseExceptionError, String, Int32, Int32)
使用给定的消息和错误代码构造 ParseException 对象
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;II)V", "", ApiSince=24)]
public StringPrepParseException(string? message, Android.Icu.Text.StringPrepParseExceptionError error, string? rules, int pos, int lineNumber);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;II)V", "", ApiSince=24)>]
new Android.Icu.Text.StringPrepParseException : string * Android.Icu.Text.StringPrepParseExceptionError * string * int * int -> Android.Icu.Text.StringPrepParseException
参数
- message
- String
描述发生的错误的类型的字符串
发生的错误
- rules
- String
输入规则字符串
- pos
- Int32
规则字符串中的错误位置
- lineNumber
- Int32
发生错误的行号。 如果分析引擎未使用此字段,则应将其设置为零。 否则,它应为正整数。 此字段的默认值为 -1。 如果填充此结构的代码未使用行号,则会将其设置为 0。
- 属性
注解
使用给定的消息和错误代码构造 ParseException 对象
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。