Share via


ResourceIndexer Class

Definition

Indexes source resource files or containers, and generates named resource candidates using particular file and folder naming conventions.

Important

You can't use this class in a UWP app.

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
Inheritance
Object Platform::Object IInspectable ResourceIndexer
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.ApplicationModel.Resources.Management.ResourceIndexerContract (introduced in v1.0)

Remarks

ResourceIndexer does not guarantee parity of discovered resource candidates with MakePRI.exe because MakePRI may have arbitrary configurations.

Constructors

ResourceIndexer(Uri, Uri)

Creates a new ResourceIndexer specifying the root of the project files and an extension DLL.

ResourceIndexer(Uri)

Creates a new ResourceIndexer specifying the root of the project files.

Methods

IndexFileContentsAsync(Uri)

Indexes a ResW, ResJSON, PRI, or PRI XML dump file path for file and folder naming conventions, and applies the qualifiers to the resources found within the contents of the file.

IndexFilePath(Uri)

Indexes a file path for file and folder naming conventions.

Applies to