Freigeben über


ResourceIndexer Klasse

Definition

Indiziert Quellressourcendateien oder -container und generiert benannte Ressourcenkandidaten mithilfe bestimmter Datei- und Ordnerbenennungskonventionen.

Wichtig

Sie können diese Klasse nicht in einer UWP-App verwenden.

public ref class ResourceIndexer sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2, 65536, Windows.ApplicationModel.Resources.Management.ResourceIndexerContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory, 65536, Windows.ApplicationModel.Resources.Management.ResourceIndexerContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ResourceIndexer final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2, 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory, 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
class ResourceIndexer final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2, 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory, 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
/// [Windows.Foundation.Metadata.Deprecated("Use CreateResourceIndexer in mrmsupport.dll instead of ResourceIndexer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
class ResourceIndexer final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2), 65536, typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory), 65536, typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ResourceIndexer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2), 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory), 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
public sealed class ResourceIndexer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2), 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory), 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
[Windows.Foundation.Metadata.Deprecated("Use CreateResourceIndexer in mrmsupport.dll instead of ResourceIndexer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
public sealed class ResourceIndexer
Public NotInheritable Class ResourceIndexer
Vererbung
Object Platform::Object IInspectable ResourceIndexer
Attribute

Windows-Anforderungen

Gerätefamilie
Windows Desktop Extension SDK (eingeführt in 10.0.10240.0)
API contract
Windows.ApplicationModel.Resources.Management.ResourceIndexerContract (eingeführt in v1.0)

Hinweise

ResourceIndexer garantiert nicht die Parität der ermittelten Ressourcenkandidaten mit MakePRI.exe, da MakePRI möglicherweise beliebige Konfigurationen aufweist.

Konstruktoren

ResourceIndexer(Uri)

Erstellt einen neuen ResourceIndexer , der den Stamm der Projektdateien angibt.

ResourceIndexer(Uri, Uri)

Erstellt einen neuen ResourceIndexer , der den Stamm der Projektdateien und eine Erweiterungs-DLL angibt.

Methoden

IndexFileContentsAsync(Uri)

Indiziert einen ResW-, ResJSON-, PRI- oder PRI-XML-Dumpdateipfad für Datei- und Ordnerbenennungskonventionen und wendet die Qualifizierer auf die Ressourcen an, die sich im Inhalt der Datei befinden.

IndexFilePath(Uri)

Indiziert einen Dateipfad für Datei- und Ordnerbenennungskonventionen.

Gilt für: