共用方式為


ResourceManager 類別

定義

提供應用程式資源對應和更進階資源功能的存取權。

public ref class ResourceManager sealed
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.ApplicationModel.Resources.MrtContract")]
/// [Windows.Foundation.Metadata.Activatable(Microsoft.ApplicationModel.Resources.IResourceManagerFactory, 65536, "Microsoft.ApplicationModel.Resources.MrtContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.ApplicationModel.Resources.MrtContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ResourceManager final
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.ApplicationModel.Resources.MrtContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.ApplicationModel.Resources.IResourceManagerFactory), 65536, "Microsoft.ApplicationModel.Resources.MrtContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.ApplicationModel.Resources.MrtContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ResourceManager
function ResourceManager(fileName)
Public NotInheritable Class ResourceManager
繼承
Object Platform::Object IInspectable ResourceManager
屬性

建構函式

ResourceManager()

使用預設設定建立 ResourceManager 物件。

ResourceManager(String)

建立 ResourceManager 物件。

屬性

MainResourceMap

取得與目前執行中應用程式之主要套件相關聯的 ResourceMap

方法

CreateResourceContext()

使用預設設定建立 ResourceCoNtext

事件

ResourceNotFound

嘗試取得資源失敗時引發的事件,因為找不到指定的資源。

適用於