Windows.Storage.Search Namespace

Erstellt Klassen zum Auflisten des Inhalts im Speicher und zum Ausführen von AQS-Suchläufen (Advanced Query Syntax) im Inhalt.

Apps können Inhaltsauflistungen in verschiedenen Formen abrufen, einschließlich der normalen Ordnerhierarchie, flacher Listen und auf Medien ausgerichteter Formen, die auf Elementeigenschaften basieren, wie Jahr, Monat, Künstler, Album usw. Außerdem können Apps dem Systemindex Inhalte und Eigenschaften hinzufügen, um eine schnelle Suche von App-Inhalten zu ermöglichen.

Apps können auch Ereignisse empfangen, die ausgelöst werden, wenn eine Auflistung geändert wird, da Dateien erstellt, geändert oder gelöscht wurden.

Für ein einzelnes Element zeigt das System den Stream, der dem Element, einer Miniaturansicht und den Elementeigenschaften zugeordnet ist, und bietet die Möglichkeit, Elemente zu erstellen und zu löschen.

Member

Windows.Storage.SearchNamespace hat diese Membertypen:

Klassen

Windows.Storage.SearchNamespace hat diese Klassen.

KlasseBeschreibung
ContentIndexer Enables Windows Store app to place content properties in the system index.
ContentIndexerQuery Represents a query for content properties in the ContentIndexer.
HitFinder
IndexableContent Represents app content and properties that can be added to the ContentIndexer.
QueryOptions Specifies the parameters of a search query for enumerating the contents of storage folders.
SortEntryVector Provides access to the sorting criteria of the query results as a collection of SortEntry objects.
StorageFileQueryResult Provides access to the results of a query of the files in the location that is represented by a storageFolder object.
StorageFolderQueryResult Provides access to the results of a query that lists the folder (or file groups) in the folder being queried (which is represented by a storageFolder).
StorageItemQueryResult Provides access to the results of a query that lists all items including files and folders (or file groups) in the folder being queried (which is represented by a storageFolder).
ValueAndLanguage Specifies the language of a property, as a BCP-47 language code.

 

Enumerationen

Windows.Storage.SearchNamespace verfügt über folgende Enumerationen.

EnumerationBeschreibung
CommonFileQuery Specifies whether the query is shallow or deep and the sorting criteria to use for files in the query results. Query results for deep queries include all files in all of the subfolders of the folder being queried and sorts them based on the specified metadata.
CommonFolderQuery Specifies whether the query is shallow or deep and the sorting criteria to use to group files into folders in the query results.
DateStackOption Indicates the unit of time used to group files into folders if a CommonFolderQuery based on date is used to create a QueryOptions object.
FolderDepth Indicates whether all files and subfolders of the folder being queried will be enumerated or if only the top-level files and subfolders will be enumerated.
IndexedState Indicates whether a StorageFolder is included in the system index.
IndexerOption Specifies whether the query should use the system index of the file system when enumerating content in the folder being queried.

 

Schnittstellen

Windows.Storage.SearchNamespace definiert diese Schnittstellen.

SchnittstelleBeschreibung
IIndexableContent Represents app content and properties that can be added to the ContentIndexer.
IStorageFolderQueryOperations Provides methods to create search queries and retrieve files from a folder. This interface is implemented by StorageFolder objects, which can represent file system folders, libraries, or virtual folders that are automatically generated when queries are created using group-based CommonFolderQuery values like GroupByAlbum.
IStorageQueryResultBase Provides methods to access to and manage query results.

 

Strukturen

Windows.Storage.SearchNamespace hat diese Strukturen.

StrukturBeschreibung
SortEntry An entry in the SortOrder list the specifies a property and ordering that is used to sort query results.

 

Anforderungen

Mindestens unterstützter Client

Windows 8.1

Mindestens unterstützter Server

Windows Server 2012 R2

Namespace

Windows.Storage.Search
Windows::Storage::Search [C++]

Metadaten

Windows.winmd

 

 

Anzeigen:
© 2014 Microsoft