ResourceIndexer.IndexFileContentsAsync(Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for