IRowsetPrioritization::GetScopePriority method (searchapi.h)

Retrieves the current indexer prioritization level for the scope specified by this query.

Syntax

HRESULT GetScopePriority(
  [out] PRIORITY_LEVEL *priority,
  [out] DWORD          *scopeStatisticsEventFrequency
);

Parameters

[out] priority

Type: PRIORITY_LEVEL*

The current indexer prioritization level as the PRIORITY_LEVEL enumeration.

[out] scopeStatisticsEventFrequency

Type: DWORD*

The occurrence interval of the scope statistics event when there are outstanding documents to be indexed within the query scopes.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Check out the SearchEvents code sample.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header searchapi.h

See also

Conceptual

IRowsetEvents

IRowsetPrioritization

Indexing Prioritization and Rowset Events in Windows 7

PRIORITIZE_FLAGS

PRIORITY_LEVEL

ROWSETEVENT_ITEMSTATE

ROWSETEVENT_TYPE

Reference

Rowset Properties