FeedConsumer::ConsumeFeed Method

Consumes the specified feed and imports the items into the provider that is contained in this object.

Namespace:  Microsoft.Synchronization.FeedSync
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

public:
EndpointState^ ConsumeFeed(
	Stream^ feedStream
)

Parameters

feedStream
Type: System.IO::Stream
A stream that contains the FeedSync feed to be consumed. Sync Framework must have read access to the stream.

Return Value

Type: Microsoft.Synchronization.FeedSync::EndpointState
The endpoint state of the feed. A nullptr when the feed is empty.

ExceptionCondition
ArgumentNullException

feedStream is a nullptr.

ArgumentException

feedStream cannot be read or contains no feed items.

When the returned endpoint state is set as the IncrementalFeedBaseline value for a FeedProducer object, the object will produce an incremental feed that is based on feedStream.

Show: