Jaa


ContentIndexer.Revision Property

Definition

Gets the version of the ContentIndexer.

public:
 property unsigned long long Revision { unsigned long long get(); };
uint64_t Revision();
public ulong Revision { get; }
var uInt64 = contentIndexer.revision;
Public ReadOnly Property Revision As ULong

Property Value

UInt64

unsigned long long

uint64_t

The revision number.

Remarks

Use the Revision property to track updates to the index.

For example, it's possible that your app may have terminated prior to the index being committed. In many cases the app can resubmit all of its content, but for more sophisticated apps, like mail, where there's a large amount of content, the app can create its own checkpoints and re-index only the missing content. The app can track how much content has been indexed by tracking the revision number. The Revision property is a number that increments based on the indexing operations that the app has initiated.

If the index is reset (which can be caused by either the index getting corrupted or a user manually clearing it out), the revision number will be "0". In this case, the app should re-push all of its data.

Applies to

See also