IFeedProducer::ProduceFeed
Produces a FeedSync feed by using data that is supplied by the specified synchronization provider.
HRESULT ProduceFeed(
ISyncProvider * pStoreProvider,
IFeedIdConverter * pIdConverter,
IFeedItemConverter * pItemConverter,
IEndpointState * pIncrementalFeedBaseline,
IStream * pFeedStream);
Parameters
Parameter | Description |
---|---|
pStoreProvider |
[in] The synchronization provider that represents the replica to produce as a FeedSync feed. |
pIdConverter |
[in] An object that can convert IDs between the Sync Framework format and the FeedSync format. |
pItemConverter |
[in] An object that can convert item data between the format of the replica and the FeedSync format. |
pIncrementalFeedBaseline |
[in, unique] An endpoint state to be used as a baseline for producing an incremental feed. Can be NULL, in which case a full feed will be produced. |
pFeedStream |
[in] The feed will be produced to this stream. This stream must initially contain an empty RSS or ATOM feed. Sync Framework must have read and write access to the stream. |
Return Value
S_OK.
E_POINTER.
SYNC_E_INVALIDOPERATION.
E_OUTOFMEMORY.
SYNC_E_FEEDSYNC_CALLBACK_EXPECTED when Sync Framework calls an IFeedIdConverter or IFeedItemConverter method and the converter method does not call the corresponding IFeedIdConverterCallback or IFeedItemConverterCallback method before returning.