IXFeed::SetMaxItemCount Method

Sets the maximum number of downloaded items for the feed.

Syntax

HRESULT SetMaxItemCount(
    UINT uiMaxItemCount
);

Parameters

  • uiMaxItemCount
    [in] Unsigned integer variable that specifies the maximum number of downloaded items, or 0 to keep all items.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

If the new value exceeds the system-defined limit set by IXFeedsManager::ItemCountLimit, this method will return E_INVALIDARG. The default value is 200 items.

Setting this property does not take effect until the next synchronization operation. To "apply" this change (purge old items), an application must call IXFeed::Download.

See Also

IXFeed::MaxItemCount