IFeedConsumer::ConsumeFeed
Consumes the specified feed and imports the items into the provider that is contained in this object.
HRESULT ConsumeFeed(
ISyncProvider * pStoreProvider,
IFeedIdConverter * pIdConverter,
IFeedItemConverter * pItemConverter,
CONFLICT_RESOLUTION_POLICY resolutionPolicy,
ISyncCallback * pCallback,
IStream * pFeedStream,
IEndpointState ** ppInputFeedState);
Parameters
- pStoreProvider
[in] The synchronization provider that is importing the feed items to its store.
- pIdConverter
[in] A converter that translates feed IDs to the format that the provider expects.
- pItemConverter
[in] A converter that translates feed items to the format that the provider expects.
- resolutionPolicy
[in] The policy to use for resolving conflicts. If this value is CRP_NONE, the ISyncCallback::OnConflict method of pCallback is called to achieve custom conflict resolution.
- pCallback
[in, unique] A callback interface that Sync Services for FeedSync can use to report events that occur during synchronization.
- pFeedStream
[in] A stream that contains the FeedSync feed to be consumed. Sync Services for FeedSync must have read access to the stream.
- ppInputFeedState
[out] The endpoint state of the feed. This value is NULL when the feed is empty.
Return Value
S_OK
E_INVALIDARG
E_OUTOFMEMORY
SYNC_E_FEEDSYNC_CALLBACK_EXPECTED when Sync Services for FeedSync calls an IFeedIdConverter or IFeedItemConverter method and the converter method does not call the corresponding IFeedIdConverterCallback or IFeedItemConverterCallback method before returning.
Remarks
When the endpoint state returned in ppInputFeedState is specified in the IFeedProducer::ProduceFeed method, the IFeedProducer object will produce an incremental feed that is based on pFeedStream.