语言

Resources.NotFoundException 构造函数

定义

重载

名称 说明
Resources.NotFoundException()

初始化资源找不到的异常,而不显示详细信息消息。

Resources.NotFoundException(String)

使用指定的详细信息消息初始化资源找不到的异常。

Resources.NotFoundException(IntPtr, JniHandleOwnership)

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

Resources.NotFoundException(String, Exception)

使用指定的详细信息消息和原因初始化资源找不到的异常。

Resources.NotFoundException()

初始化资源找不到的异常,而不显示详细信息消息。

[Android.Runtime.Register(".ctor", "()V", "")]
public NotFoundException();
特性

注解

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

适用于

Resources.NotFoundException(String)

使用指定的详细信息消息初始化资源找不到的异常。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public NotFoundException(string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Content.Res.Resources.NotFoundException : string -> Android.Content.Res.Resources.NotFoundException

参数

name
String

详细信息消息或 null。

特性

注解

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

适用于

Resources.NotFoundException(IntPtr, JniHandleOwnership)

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

protected NotFoundException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.Res.Resources.NotFoundException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.Res.Resources.NotFoundException

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于

Resources.NotFoundException(String, Exception)

使用指定的详细信息消息和原因初始化资源找不到的异常。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Exception;)V", "", ApiSince=24)]
public NotFoundException(string? name, Java.Lang.Exception? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Exception;)V", "", ApiSince=24)>]
new Android.Content.Res.Resources.NotFoundException : string * Java.Lang.Exception -> Android.Content.Res.Resources.NotFoundException

参数

name
String

详细信息消息或 null。

cause
Exception

基础异常,或 null。

特性

注解

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

适用于