ContentIndexer.GetIndexer Method

Definition

Overloads

GetIndexer()

Gets an existing per-app index or creates a new one, if necessary.

GetIndexer(String)

Gets the per-app index with the specified name or creates a new one, if necessary.

GetIndexer()

Gets an existing per-app index or creates a new one, if necessary.

public:
 static ContentIndexer ^ GetIndexer();
/// [Windows.Foundation.Metadata.Overload("GetIndexer")]
 static ContentIndexer GetIndexer();
[Windows.Foundation.Metadata.Overload("GetIndexer")]
public static ContentIndexer GetIndexer();
function getIndexer()
Public Shared Function GetIndexer () As ContentIndexer

Returns

The index.

Attributes

See also

Applies to

GetIndexer(String)

Gets the per-app index with the specified name or creates a new one, if necessary.

public:
 static ContentIndexer ^ GetIndexer(Platform::String ^ indexName);
/// [Windows.Foundation.Metadata.Overload("GetIndexerWithName")]
 static ContentIndexer GetIndexer(winrt::hstring const& indexName);
[Windows.Foundation.Metadata.Overload("GetIndexerWithName")]
public static ContentIndexer GetIndexer(string indexName);
function getIndexer(indexName)
Public Shared Function GetIndexer (indexName As String) As ContentIndexer

Parameters

indexName
String

Platform::String

winrt::hstring

The index name.

Returns

The index.

Attributes

Remarks

The app can provide an indexName identifier that it can use to partition data for its own queries. This identifier is included as part of the item scope, which means that it's faster to partition based on this scope than by filtering with a property. The approach has the cost of being unable to query easily across multiple scopes.

See also

Applies to