Поделиться через


ResourceIndexer.IndexFileContentsAsync(Uri) Метод

Определение

Индексирует путь к файлу xml-дампа ResW, ResJSON, PRI или PRI для соглашений об именовании файлов и папок и применяет квалификаторы к ресурсам, найденным в содержимом файла.

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))

Параметры

file
Uri Uri

Файл для индексирования (file:// URI). Путь должен быть абсолютным путем с указанной буквой диска. Универсальный код ресурса (URI) также может предоставлять пустой центр, который считается локальной файловой системой. Длинные пути к файлам не поддерживаются.

Возвращаемое значение

Список объектов IndexedResourceCandidate , найденных в файле. Это пустой список, если ничего не найдено.

Атрибуты

Применяется к