Freigeben über


ResourceManager Klasse

Definition

Bietet Zugriff auf App-Ressourcenzuordnungen und erweiterte Ressourcenfunktionen.

public ref class ResourceManager sealed
public ref class ResourceManager sealed : IResourceManager
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Windows.ApplicationModel.Resources.MrtContract")]
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.ApplicationModel.Resources.IResourceManagerFactory, 65536, "Microsoft.Windows.ApplicationModel.Resources.MrtContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.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.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract")]
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.ApplicationModel.Resources.IResourceManagerFactory, 65536, "Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract, 65536)]
class ResourceManager final : IResourceManager
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Windows.ApplicationModel.Resources.MrtContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.ApplicationModel.Resources.IResourceManagerFactory), 65536, "Microsoft.Windows.ApplicationModel.Resources.MrtContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.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
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.ApplicationModel.Resources.IResourceManagerFactory), 65536, "Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract), 65536)]
public sealed class ResourceManager : IResourceManager
function ResourceManager(fileName)
Public NotInheritable Class ResourceManager
Public NotInheritable Class ResourceManager
Implements IResourceManager
Vererbung
Object Platform::Object IInspectable ResourceManager
Attribute
Implementiert

Konstruktoren

ResourceManager()

Erstellt ein ResourceManager-Objekt mit den Standardeinstellungen.

ResourceManager(String)

Erstellt ein ResourceManager-Objekt .

Eigenschaften

MainResourceMap

Ruft die ResourceMap ab, die dem Standard-Paket der derzeit ausgeführten App zugeordnet ist.

Methoden

CreateResourceContext()

Erstellt einen ResourceContext mit den Standardeinstellungen.

Ereignisse

ResourceNotFound

Tritt auf, wenn der Versuch, eine Ressource abzurufen, fehlschlägt, weil die angegebene Ressource nicht gefunden wurde.

Gilt für:

Weitere Informationen