语言

InvalidPreferencesFormatException 构造函数

定义

重载

名称 说明
InvalidPreferencesFormatException(Throwable)

构造具有指定原因的 InvalidPreferencesFormatException。

InvalidPreferencesFormatException(String)

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

InvalidPreferencesFormatException(IntPtr, JniHandleOwnership)

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

InvalidPreferencesFormatException(String, Throwable)

使用指定的详细信息消息和原因构造 InvalidPreferencesFormatException。

InvalidPreferencesFormatException(Throwable)

构造具有指定原因的 InvalidPreferencesFormatException。

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

参数

cause
Throwable

原因(此方法保存供以后检索 Throwable#getCause() )。

属性

注解

构造具有指定原因的 InvalidPreferencesFormatException。

适用于 . 的 java.util.prefs.InvalidPreferencesFormatException.InvalidPreferencesFormatException(java.lang.Throwable)Java 文档

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

适用于

InvalidPreferencesFormatException(String)

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

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

参数

message
String

详细信息消息。 详细信息消息将保存,供以后通过 Throwable#getMessage() 该方法进行检索。

属性

注解

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

适用于 . 的 java.util.prefs.InvalidPreferencesFormatException.InvalidPreferencesFormatException(java.lang.String)Java 文档

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

适用于

InvalidPreferencesFormatException(IntPtr, JniHandleOwnership)

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

protected InvalidPreferencesFormatException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Prefs.InvalidPreferencesFormatException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Prefs.InvalidPreferencesFormatException

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于

InvalidPreferencesFormatException(String, Throwable)

使用指定的详细信息消息和原因构造 InvalidPreferencesFormatException。

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

参数

message
String

详细信息消息。 详细信息消息将保存,供以后通过 Throwable#getMessage() 该方法进行检索。

cause
Throwable

原因(此方法保存供以后检索 Throwable#getCause() )。

属性

注解

使用指定的详细信息消息和原因构造 InvalidPreferencesFormatException。

适用于 . 的 java.util.prefs.InvalidPreferencesFormatException.InvalidPreferencesFormatException(java.lang.String, java.lang.Throwable)Java 文档

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

适用于