ResourceIndexer.IndexFileContentsAsync(Uri) Method

Definition

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.

public:
 virtual IAsyncOperation<IVectorView<IndexedResourceCandidate ^> ^> ^ IndexFileContentsAsync(Uri ^ file) = IndexFileContentsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<IndexedResourceCandidate>> IndexFileContentsAsync(Uri const& file);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("Use IndexFilePath in mrmsupport.dll instead of IResourceIndexer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
IAsyncOperation<IVectorView<IndexedResourceCandidate>> IndexFileContentsAsync(Uri const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<IndexedResourceCandidate>> IndexFileContentsAsync(System.Uri file);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("Use IndexFilePath in mrmsupport.dll instead of IResourceIndexer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
public IAsyncOperation<IReadOnlyList<IndexedResourceCandidate>> IndexFileContentsAsync(System.Uri file);
function indexFileContentsAsync(file)
Public Function IndexFileContentsAsync (file As Uri) As IAsyncOperation(Of IReadOnlyList(Of IndexedResourceCandidate))

Parameters

file
Uri Uri

The file to be indexed (file:// URI). The path must be an absolute path with the drive letter specified. The Uri can also provide an empty authority which is assumed to be the local file system. Long file paths are not supported.

Returns

A list of IndexedResourceCandidate objects found within file. This is an empty list if nothing is found.

Attributes

Applies to