Compartir a través de


IFeed::MaxItemCount Property

Gets or sets the maximum number of downloaded items for the feed.

Syntax

HRESULT IFeed::get_MaxItemCount(LONG *count);
HRESULT IFeed::put_MaxItemCount(LONG count);

Parameters

  • count
    Pointer to a variable of type LONG that receives the maximum number of downloaded items, or 0 to keep all items.
  • count
    LONG 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

The IFeed::MaxItemCount property determines how many items remain after feed synchronization. If the maximum number of feed items is exceeded, the oldest items are deleted. The value cannot exceed the system-defined limit set by IFeedsManager::ItemCountLimit.

The default value is 200 items.

Setting this property does not take effect until the next synchronization operation. To "apply" this change, an application must call IFeed::Download.