Επεξεργασία

Κοινή χρήση μέσω


SyndicationFeedFormatter.SetFeed(SyndicationFeed) Method

Definition

Associates a SyndicationFeed instance with the SyndicationFeedFormatter.

protected public:
 virtual void SetFeed(System::ServiceModel::Syndication::SyndicationFeed ^ feed);
protected internal virtual void SetFeed (System.ServiceModel.Syndication.SyndicationFeed feed);
abstract member SetFeed : System.ServiceModel.Syndication.SyndicationFeed -> unit
override this.SetFeed : System.ServiceModel.Syndication.SyndicationFeed -> unit
Protected Friend Overridable Sub SetFeed (feed As SyndicationFeed)

Parameters

feed
SyndicationFeed

The SyndicationFeed to associate with the SyndicationFeedFormatter.

Remarks

This method is protected and cannot be called from user code. To associate a SyndicationFeed instance with a SyndicationFeedFormatter, either create a new SyndicationFeedFormatter instance and pass the constructor a SyndicationFeed instance or load a SyndicationFeed instance into the SyndicationFeedFormatter by calling the ReadFrom(XmlReader) method.

Applies to