ResourceManager 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示资源管理器,其可在运行时提供对于特定文化资源的便利访问
public ref class ResourceManager
public class ResourceManager
[System.Serializable]
public class ResourceManager
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class ResourceManager
type ResourceManager = class
[<System.Serializable>]
type ResourceManager = class
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ResourceManager = class
Public Class ResourceManager
- 继承
-
ResourceManager
- 派生
- 属性
有关此 API 的详细信息,请参阅 ResourceManager 的补充 API 备注。
Resource |
使用默认值初始化 ResourceManager 类的新实例。 |
Resource |
初始化 ResourceManager 类的新实例,该实例在给定的程序集中查找从指定根名称导出的文件中包含的资源。 |
Resource |
初始化使用指定 ResourceSet 的 ResourceManager 类的新实例,该实例在给定的程序集中的指定根名称类的文件中查找资源。 |
Resource |
它根据指定的对象中的信息在附属程序集内查找资源来初始化 ResourceManager 类的新实例。 |
Base |
指定 ResourceManager 在其中搜索资源的资源文件的根名称。 |
Header |
指定 ResourceManager 的当前实现可解释和产生的资源文件头的版本。 |
Magic |
保留用于标识资源文件的数字。 |
Main |
指定包含资源的主要程序集。 |
Resource |
已过时.
包含 Hashtable,它返回从区域性到 ResourceSet 对象的映射。 |
Base |
获取 ResourceManager 从其中搜索资源的资源文件的根名称。 |
Fallback |
获取或设置检索默认回退资源的位置。 |
Ignore |
获取或设置值,该值指示资源管理器是否允许在 GetString(String) 和 GetObject(String) 方法中进行不区分大小写的资源查找。 |
Resource |
获取资源管理器使用构造 ResourceSet 对象的资源设置对象的类型。 |
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
此类型是线程安全的。