Condividi tramite


ResourceIndexer Classe

Definizione

Indicizza i file o i contenitori delle risorse di origine e genera candidati di risorse denominati usando convenzioni di denominazione di file e cartelle specifiche.

Importante

Non puoi usare questa classe in un'app UWP.

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
Ereditarietà
Object Platform::Object IInspectable ResourceIndexer
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows Desktop Extension SDK (è stato introdotto in 10.0.10240.0)
API contract
Windows.ApplicationModel.Resources.Management.ResourceIndexerContract (è stato introdotto in v1.0)

Commenti

ResourceIndexer non garantisce la parità dei candidati delle risorse individuate con MakePRI.exe perché MakePRI può avere configurazioni arbitrarie.

Costruttori

ResourceIndexer(Uri)

Crea un nuovo ResourceIndexer che specifica la radice dei file di progetto.

ResourceIndexer(Uri, Uri)

Crea un nuovo ResourceIndexer che specifica la radice dei file di progetto e una DLL di estensione.

Metodi

IndexFileContentsAsync(Uri)

Indicizza un percorso di file di dump RESW, ResJSON, PRI o PRI XML per convenzioni di denominazione di file e cartelle e applica i qualificatori alle risorse presenti all'interno del contenuto del file.

IndexFilePath(Uri)

Indicizza un percorso di file per le convenzioni di denominazione di file e cartelle.

Si applica a