IndexerOption Enum

Definition

Specifies whether the query should use the system index of the file system when enumerating content in the folder being queried. The indexer can retrieve results faster but is not available in all file locations.

public enum class IndexerOption
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class IndexerOption
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum IndexerOption
var value = Windows.Storage.Search.IndexerOption.useIndexerWhenAvailable
Public Enum IndexerOption
Inheritance
IndexerOption
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

DoNotUseIndexer 2

Access the file system directly; don't use the system index.

OnlyUseIndexer 1

Use only indexed content and ignore content that has not been indexed.

OnlyUseIndexerAndOptimizeForIndexedProperties 3

Only returns the properties specified in QueryOptions.SetPropertyPrefetch for faster results.

UseIndexerWhenAvailable 0

Use the system index for content that has been indexed and use the file system directly for content that has not been indexed.

Remarks

Version history

Windows version SDK version Value added
1709 16299 OnlyUseIndexerAndOptimizeForIndexedProperties

Applies to